mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
4ff9968f6b
commit
51b96f5313
5
utils.py
5
utils.py
|
@ -1191,9 +1191,8 @@ def dangerous_markup(content: str, allow_local_network_access: bool) -> bool:
|
|||
if _is_dangerous_string_simple(content, allow_local_network_access,
|
||||
separators, invalid_strings):
|
||||
return True
|
||||
if not html_tag_has_closing('code', content):
|
||||
return True
|
||||
if not html_tag_has_closing('pre', content):
|
||||
for closing_tag in ('code', 'pre'):
|
||||
if not html_tag_has_closing(closing_tag, content):
|
||||
return True
|
||||
invalid_strings = [
|
||||
'script', 'noscript', 'canvas', 'style', 'abbr', 'input',
|
||||
|
|
Loading…
Reference in New Issue