Check for localhost links in css

This commit is contained in:
bashrc committed 2020-12-12 20:55:33 +00:00
1 parent 249cc1ab5a
commit 5dfd647f81
1 file changed
+2 -1
+2 -1
View File
@@ -196,7 +196,8 @@ def dangerousCSS(filename: str, allowLocalNetworkAccess: bool) -> bool:
content = fp.read().lower()
cssMatches = ('behavior:', ':expression', '?php', '.php',
'google')
'google', 'localhost',
'127.0.', '192.168', '10.0.')
for match in cssMatches:
if match in content:
return True