forked from indymedia/epicyon
Convert to lower case
This commit is contained in:
1 parent
9c1a0b9bdb
commit
079e893385
1 file changed
+2
-2
+2
-2
@@ -189,9 +189,9 @@ def dangerousCSS(filename: str) -> bool:
|
||||
return False
|
||||
|
||||
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:
|
||||
if match in content:
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user