From 0dbcc0e380259a1c2ec5a459b271bf14f463b89b Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sat, 5 Sep 2020 16:21:50 -0500 Subject: [PATCH] Change file extension check to be case-insensitive --- imgupload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgupload.py b/imgupload.py index 5998d6d..6512a4b 100644 --- a/imgupload.py +++ b/imgupload.py @@ -17,7 +17,7 @@ app = Flask(__name__) # app is the app def allowed_extension(testext): - if testext in settings.ALLOWED_EXTENSIONS: + if testext.lower() in settings.ALLOWED_EXTENSIONS: return True else: return False