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({
|
.attr({
|
||||||
frameborder: 0,
|
frameborder: 0,
|
||||||
height: self.options.height + 'px',
|
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'
|
width: self.options.width + 'px'
|
||||||
})
|
})
|
||||||
.onMessage(function(data, event) {
|
.onMessage(function(data, event) {
|
||||||
|
|
Loading…
Reference in a new issue