mirror of https://gitlab.com/bashrc2/epicyon
Also remove noscript markup
parent
fd30083696
commit
6765f7b02f
3
utils.py
3
utils.py
|
@ -675,7 +675,8 @@ def dangerousMarkup(content: str, allowLocalNetworkAccess: bool) -> bool:
|
|||
invalidPartials = ()
|
||||
if not allowLocalNetworkAccess:
|
||||
invalidPartials = getLocalNetworkAddresses()
|
||||
invalidStrings = ('script', 'canvas', 'style', 'abbr',
|
||||
invalidStrings = ('script', 'noscript',
|
||||
'canvas', 'style', 'abbr',
|
||||
'frame', 'iframe', 'html', 'body',
|
||||
'hr', 'allow-popups', 'allow-scripts')
|
||||
for markup in contentSections:
|
||||
|
|
Loading…
Reference in New Issue