summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfhost.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/fhost.py b/fhost.py
index eb30a9d..faf6d03 100755
--- a/fhost.py
+++ b/fhost.py
@@ -439,10 +439,11 @@ def get(path, secret=None):
if sufs:
f = File.query.get(id)
- if f.secret != secret:
- abort(404)
if f and f.ext == sufs:
+ if f.secret != secret:
+ abort(404)
+
if f.removed:
abort(451)