about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-25 23:45:30 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-25 23:45:30 +0100
commitefd615e76f5a1c0f19951b69f793885cb2cb75d1 (patch)
treef09986fa3ac28f888a7ff96c7e15245cd4b36a9e /src
parent15bce888b11aa094818e4356afe6ff0dcd808486 (diff)
downloadchawan-efd615e76f5a1c0f19951b69f793885cb2cb75d1.tar.gz
pager: percent-decode path name in askDownloadPath
Diffstat (limited to 'src')
-rw-r--r--src/local/pager.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim
index 4628b11f..c734b936 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -1570,7 +1570,7 @@ proc askDownloadPath(pager: Pager; container: Container; response: Response) =
   if pathname[^1] == '/':
     buf &= "index.html"
   else:
-    buf &= container.url.pathname.afterLast('/')
+    buf &= container.url.pathname.afterLast('/').percentDecode()
   pager.setLineEdit(lmDownload, buf)
   pager.lineData = LineDataDownload(
     outputId: response.outputId,