whoops
This commit is contained in:
parent
4e0edb4ab3
commit
7938d8a81a
2
run.py
2
run.py
|
@ -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"]
|
||||
|
||||
|
|
Loading…
Reference in New Issue