From 4549145ab522d506bb4362b6dcaba04b9008f6ac Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 1 May 2022 11:29:51 +0200 Subject: [PATCH] fix filekeys in basic-html browser --- README.md | 2 +- copyparty/httpcli.py | 2 +- copyparty/web/browser2.html | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index de0dc340..00b09144 100644 --- a/README.md +++ b/README.md @@ -881,7 +881,7 @@ quick summary of more eccentric web-browsers trying to view a directory index: | **w3m** (0.5.3/macports) | can browse, login, upload at 100kB/s, mkdir/msg | | **netsurf** (3.10/arch) | is basically ie6 with much better css (javascript has almost no effect) | | **opera** (11.60/winxp) | OK: thumbnails, image-viewer, zip-selection, rename/cut/paste. NG: up2k, navpane, markdown, audio | -| **ie4** and **netscape** 4.0 | can browse, upload with `?b=u` | +| **ie4** and **netscape** 4.0 | can browse, upload with `?b=u`, auth with `&pw=wark` | | **SerenityOS** (7e98457) | hits a page fault, works with `?b=u`, file upload not-impl | diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index f473e16a..1dca8d42 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -2178,7 +2178,7 @@ class HttpCli(object): if self.can_get: perms.append("get") - url_suf = self.urlq({}, []) + url_suf = self.urlq({}, ["k"]) is_ls = "ls" in self.uparam is_js = self.args.force_js or self.cookies.get("js") == "y" diff --git a/copyparty/web/browser2.html b/copyparty/web/browser2.html index ed24fda1..0da8d313 100644 --- a/copyparty/web/browser2.html +++ b/copyparty/web/browser2.html @@ -45,7 +45,9 @@ parent folder-- {%- for f in files %} -{{ f.lead }}{{ f.name|e }}{{ f.sz }}{{ f.dt }} +{{ f.lead }}{{ f.name|e }}{{ f.sz }}{{ f.dt }} {%- endfor %}