encode pdf url

This commit is contained in:
j 2016-07-08 14:21:01 +05:30
parent 6f4a0ba90a
commit ffe4b03a76

View file

@ -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) {