summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfhost.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fhost.py b/fhost.py
index e829f77..f939245 100755
--- a/fhost.py
+++ b/fhost.py
@@ -270,7 +270,7 @@ def store_url(url, addr):
@app.route("/<path:path>")
def get(path):
- path = Path(path)
+ path = Path(path.split("/", 1)[0])
sufs = "".join(path.suffixes[-2:])
name = path.name[:-len(sufs) or None]
id = su.debase(name)