diff options
| author | Mia Herkt <mia@0x0.st> | 2022-12-13 23:17:56 +0100 |
|---|---|---|
| committer | Mia Herkt <mia@0x0.st> | 2022-12-13 23:17:56 +0100 |
| commit | d5763a985491547a715a006ec3ccdc371c81623d (patch) | |
| tree | 8ae30f2f0064dd1eecee231e5541fd18de2c946d | |
| parent | aaf0e4492adb89394ee2acd88bda12413107c5be (diff) | |
File: Fix 404 case with secret URLs
| -rwxr-xr-x | fhost.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |
