From 079e893385daced36af04bc08b6f4442e7a91c6a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 15 Nov 2020 11:14:26 +0000 Subject: [PATCH] Convert to lower case --- content.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content.py b/content.py index de178b9d..c079f46a 100644 --- a/content.py +++ b/content.py @@ -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