This commit is contained in:
Dominik V. Salonen 2016-12-23 09:33:15 +01:00 committed by GitHub
parent 4e0edb4ab3
commit 7938d8a81a
1 changed files with 1 additions and 1 deletions

2
run.py
View File

@ -63,7 +63,7 @@ def allowed_file(filename):
return True
else:
if config["BLACKLIST"]:
return '.' in filename and filename.rsplit('.', 1)[1] in config["BANNED_EXTENSIONS"]
return '.' in filename and filename.rsplit('.', 1)[1] not in config["BANNED_EXTENSIONS"]
else:
return '.' in filename and filename.rsplit('.', 1)[1] in config["ALLOWED_EXTENSIONS"]