[mirror of https://git.0x0.st/mia/0x0] No-bullshit file hosting and URL shortening service https://0x0.st

Fix 500 on invalid paths

Changed files
+4
+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 + 412 + if "." in name: 413 + abort(404) 414 + 411 415 id = su.debase(name) 412 416 413 417 if sufs: