From 2283f0bac1adccf5fccd2a62659e6d968303481f Mon Sep 17 00:00:00 2001 From: gigaherz Date: Sat, 31 Mar 2012 01:23:53 +0200 Subject: [PATCH] Decode the filename when assigning to title. --- web/viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/viewer.js b/web/viewer.js index d133b09da..8977b53c0 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -311,7 +311,7 @@ var PDFView = { open: function pdfViewOpen(url, scale) { this.url = url; - document.title = getFileName(url) || url; + document.title = decodeURIComponent(getFileName(url)) || url; if (!PDFView.loadingBar) { PDFView.loadingBar = new ProgressBar('#loadingBar', {});