mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
The extension should urlencode the pdf when sending it over to the viewer.
This commit is contained in:
parent
f8b689fb26
commit
0d02ab5098
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,8 @@ pdfContentHandler.prototype = {
|
|||
throw NS_ERROR_WONT_HANDLE_CONTENT;
|
||||
|
||||
aRequest.cancel(Cr.NS_BINDING_ABORTED);
|
||||
window.location = url.replace('%s', targetUrl);
|
||||
aRequest.cancel(Cr.NS_BINDING_ABORTED);
|
||||
window.location = url.replace('%s', encodeURIComponent(targetUrl));
|
||||
},
|
||||
|
||||
classID: Components.ID('{2278dfd0-b75c-11e0-8257-1ba3d93c9f1a}'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue