tangled
alpha
login
or
join now
cookie.ebil.club
/
0x0
[mirror of https://git.0x0.st/mia/0x0] No-bullshit file hosting and URL shortening service https://0x0.st
0
fork
atom
overview
issues
pulls
pipelines
Fix 500 on invalid paths
Mia Herkt
3 years ago
ed84d375
7661216b
options
unified
split
Changed files
+4
fhost.py
+4
fhost.py
···
408
408
path = Path(path.split("/", 1)[0])
409
409
sufs = "".join(path.suffixes[-2:])
410
410
name = path.name[:-len(sufs) or None]
411
411
+
412
412
+
if "." in name:
413
413
+
abort(404)
414
414
+
411
415
id = su.debase(name)
412
416
413
417
if sufs: