mirror of https://gitlab.com/bashrc2/epicyon
Extra markup checks
parent
da84cd7a6b
commit
4007e2bffc
2
utils.py
2
utils.py
|
@ -1112,7 +1112,7 @@ def dangerous_markup(content: str, allow_local_network_access: bool) -> bool:
|
||||||
"""
|
"""
|
||||||
separators = [['<', '>'], ['<', '>']]
|
separators = [['<', '>'], ['<', '>']]
|
||||||
invalid_strings = [
|
invalid_strings = [
|
||||||
'ampproject', 'googleapis', '_exec('
|
'ampproject', 'googleapis', '_exec(', ' id=', ' name='
|
||||||
]
|
]
|
||||||
if _is_dangerous_string_simple(content, allow_local_network_access,
|
if _is_dangerous_string_simple(content, allow_local_network_access,
|
||||||
separators, invalid_strings):
|
separators, invalid_strings):
|
||||||
|
|
Loading…
Reference in New Issue