diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index e5012d39..bd9bb6c6 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -3911,7 +3911,6 @@ class HttpCli(object): doc = self.uparam.get("doc") if self.can_read else None if doc: - doc = unquotep(doc.replace("+", " ").split("?")[0]) j2a["docname"] = doc doctxt = None if next((x for x in files if x["name"] == doc), None): diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 454e579f..ceec53ff 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -3930,7 +3930,7 @@ var showfile = (function () { if (!lang) continue; - r.files.push({ 'id': link.id, 'name': fn }); + r.files.push({ 'id': link.id, 'name': uricom_dec(fn) }); var td = ebi(link.id).closest('tr').getElementsByTagName('td')[0]; @@ -4120,8 +4120,9 @@ var showfile = (function () { var html = ['
  • ' + L.tv_lst + '
    ' + linksplit(get_vpath()).join('') + '
  • ']; for (var a = 0; a < r.files.length; a++) { var file = r.files[a]; - html.push('
  • ' + esc(uricom_dec(file.name)) + ''); + html.push('
  • ' + esc(file.name) + ''); } ebi('docul').innerHTML = html.join('\n'); };