Anything coming from google - fonts, etc - is bad

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

View File

@ -191,7 +191,8 @@ def dangerousCSS(filename: str) -> bool:
with open(filename, 'r') as fp:
content = fp.read().lower()
cssMatches = ('behavior:', ':expression', '?php', '.php')
cssMatches = ('behavior:', ':expression', '?php', '.php',
'google')
for match in cssMatches:
if match in content:
return True