mirror of
https://git.0x0.st/mia/0x0.git
synced 2024-11-25 09:47:12 +01:00
File: Fix 404 case with secret URLs
This commit is contained in:
parent
aaf0e4492a
commit
d5763a9854
1 changed files with 3 additions and 2 deletions
3
fhost.py
3
fhost.py
|
@ -439,10 +439,11 @@ def get(path, secret=None):
|
|||
|
||||
if sufs:
|
||||
f = File.query.get(id)
|
||||
|
||||
if f and f.ext == sufs:
|
||||
if f.secret != secret:
|
||||
abort(404)
|
||||
|
||||
if f and f.ext == sufs:
|
||||
if f.removed:
|
||||
abort(451)
|
||||
|
||||
|
|
Loading…
Reference in a new issue