From ffe4b03a768226a91a3f1835e65bc724af6f034f Mon Sep 17 00:00:00 2001 From: j Date: Fri, 8 Jul 2016 14:21:01 +0530 Subject: [PATCH] encode pdf url --- static/js/PDFViewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/PDFViewer.js b/static/js/PDFViewer.js index 1d8f394b..5404a423 100644 --- a/static/js/PDFViewer.js +++ b/static/js/PDFViewer.js @@ -59,7 +59,7 @@ Ox.PDFViewer = function(options, self) { .attr({ frameborder: 0, height: self.options.height + 'px', - src: self.options.pdfjsURL + '?file=' + self.options.url + '#page=' + self.options.page, + src: self.options.pdfjsURL + '?file=' + encodeURIComponent(self.options.url) + '#page=' + self.options.page, width: self.options.width + 'px' }) .onMessage(function(data, event) {