Change file extension check to be case-insensitive
This commit is contained in:
parent
b8b5a2518c
commit
0dbcc0e380
@ -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
|
||||
|
Reference in New Issue
Block a user