mirror of https://gitlab.com/bashrc2/epicyon
Dissallow regular expressions in css
parent
5dfd647f81
commit
49091dea9f
|
@ -196,7 +196,7 @@ def dangerousCSS(filename: str, allowLocalNetworkAccess: bool) -> bool:
|
||||||
content = fp.read().lower()
|
content = fp.read().lower()
|
||||||
|
|
||||||
cssMatches = ('behavior:', ':expression', '?php', '.php',
|
cssMatches = ('behavior:', ':expression', '?php', '.php',
|
||||||
'google', 'localhost',
|
'google', 'regexp', 'localhost',
|
||||||
'127.0.', '192.168', '10.0.')
|
'127.0.', '192.168', '10.0.')
|
||||||
for match in cssMatches:
|
for match in cssMatches:
|
||||||
if match in content:
|
if match in content:
|
||||||
|
|
Loading…
Reference in New Issue