Change file extension check to be case-insensitive

This commit is contained in:
BBaoVanC 2020-09-05 16:21:50 -05:00
parent b8b5a2518c
commit 0dbcc0e380
No known key found for this signature in database
GPG Key ID: 6D74C8B0E7D791C2

View File

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