From efd615e76f5a1c0f19951b69f793885cb2cb75d1 Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 25 Mar 2024 23:45:30 +0100 Subject: pager: percent-decode path name in askDownloadPath --- src/local/pager.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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, -- cgit 1.4.1-2-gfad0