From 7938d8a81a37eda201967aa7efd03013ec64a792 Mon Sep 17 00:00:00 2001 From: "Dominik V. Salonen" Date: Fri, 23 Dec 2016 09:33:15 +0100 Subject: [PATCH] whoops --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index 6c7cfc1..69b35c6 100755 --- a/run.py +++ b/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"]