mirror of https://gitlab.com/bashrc2/epicyon
Avoid svg image links within content
parent
276f9fc6a6
commit
a191e0b6e8
2
utils.py
2
utils.py
|
@ -1221,6 +1221,8 @@ def dangerous_markup(content: str, allow_local_network_access: bool,
|
|||
allow_tags: []) -> bool:
|
||||
"""Returns true if the given content contains dangerous html markup
|
||||
"""
|
||||
if '.svg' in content.lower():
|
||||
return True
|
||||
separators = [['<', '>'], ['<', '>']]
|
||||
invalid_strings = [
|
||||
'ampproject', 'googleapis', '_exec(', ' id=', ' name='
|
||||
|
|
Loading…
Reference in New Issue