mirror of https://gitlab.com/bashrc2/epicyon
Use file content
parent
2f70c6acff
commit
f4a3065292
|
@ -1437,7 +1437,10 @@ def getPersonAvatarUrl(baseDir: str, personUrl: str, personCache: {},
|
|||
if ext != 'svg':
|
||||
return imPath
|
||||
else:
|
||||
if not dangerousSVG(imFilename, False):
|
||||
content = ''
|
||||
with open(imFilename, 'r') as fp:
|
||||
content = fp.read()
|
||||
if not dangerousSVG(content, False):
|
||||
return imPath
|
||||
|
||||
if personJson.get('icon'):
|
||||
|
|
Loading…
Reference in New Issue