Convert to lower case

main
Bob Mottram 2020-11-15 11:14:26 +00:00
parent 9c1a0b9bdb
commit 079e893385
1 changed files with 2 additions and 2 deletions

View File

@ -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