mirror of https://gitlab.com/bashrc2/epicyon
Convert to lower case
parent
9c1a0b9bdb
commit
079e893385
|
@ -189,9 +189,9 @@ def dangerousCSS(filename: str) -> bool:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
with open(filename, 'r') as fp:
|
with open(filename, 'r') as fp:
|
||||||
content = fp.read()
|
content = fp.read().lower()
|
||||||
|
|
||||||
cssMatches = ('behavior:', ':expression', '?php')
|
cssMatches = ('behavior:', ':expression', '?php', '.php')
|
||||||
for match in cssMatches:
|
for match in cssMatches:
|
||||||
if match in content:
|
if match in content:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue