forked from 0x2620/pandora
encode pdf url
This commit is contained in:
parent
6f4a0ba90a
commit
ffe4b03a76
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue