diff --git a/copyparty/authsrv.py b/copyparty/authsrv.py index d6ade06c..d50ea173 100644 --- a/copyparty/authsrv.py +++ b/copyparty/authsrv.py @@ -1532,7 +1532,7 @@ class AuthSrv(object): if enshare: import sqlite3 - shv = VFS(self.log_func, "", shr, AXS(), {"d2d": True}) + shv = VFS(self.log_func, "", shr, AXS(), {}) db_path = self.args.shr_db db = sqlite3.connect(db_path) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 4a0a15f5..f2fdb6a3 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -3941,6 +3941,9 @@ class HttpCli(object): vp = re.sub(r"[<>&$?`\"']", "_", self.uparam["hc"] or "").lstrip("/") pw = pw.replace(" ", "%20") vp = vp.replace(" ", "%20") + if pw in self.asrv.sesa: + pw = "pwd" + html = self.j2s( "svcs", args=self.args, diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 4a80e5fa..95c4674f 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -5301,8 +5301,12 @@ var showfile = (function () { r.files.push({ 'id': link.id, 'name': uricom_dec(fn) }); - var td = ebi(link.id).closest('tr').getElementsByTagName('td')[0]; + var ah = ebi(link.id), + td = ah.closest('tr').getElementsByTagName('td')[0]; + if (ah.textContent.endsWith('/')) + continue; + if (lang == 'ts' || (lang == 'md' && td.textContent != '-')) continue; diff --git a/copyparty/web/splash.css b/copyparty/web/splash.css index 960647c0..144886b9 100644 --- a/copyparty/web/splash.css +++ b/copyparty/web/splash.css @@ -53,7 +53,7 @@ a.r { border-color: #c7a; } a.g { - color: #2b0; + color: #0a0; border-color: #3a0; box-shadow: 0 .3em 1em #4c0; } @@ -152,11 +152,13 @@ pre b, code b { color: #000; font-weight: normal; - text-shadow: 0 0 .2em #0f0; + text-shadow: 0 0 .2em #3f3; + border-bottom: 1px solid #090; } html.z pre b, html.z code b { color: #fff; + border-bottom: 1px solid #9f9; }