Browse Source

Merge pull request #737 from gigaherz/master

Fix missing urlencoding of pdf urls in the extension
Andreas Gal 14 years ago
parent
commit
99a4231e4a
  1. 2
      extensions/firefox/components/pdfContentHandler.js

2
extensions/firefox/components/pdfContentHandler.js

@ -56,7 +56,7 @@ pdfContentHandler.prototype = {
throw NS_ERROR_WONT_HANDLE_CONTENT; throw NS_ERROR_WONT_HANDLE_CONTENT;
aRequest.cancel(Cr.NS_BINDING_ABORTED); aRequest.cancel(Cr.NS_BINDING_ABORTED);
window.location = url.replace('%s', targetUrl); window.location = url.replace('%s', encodeURIComponent(targetUrl));
}, },
classID: Components.ID('{2278dfd0-b75c-11e0-8257-1ba3d93c9f1a}'), classID: Components.ID('{2278dfd0-b75c-11e0-8257-1ba3d93c9f1a}'),

Loading…
Cancel
Save