Skip to content

Commit

Permalink
Merge pull request mozilla#9364 from shikhar-scs/change-decodeURI-to-…
Browse files Browse the repository at this point in the history
…decodeURIcomponent

changed decodeURI to decodeURIComponent: Fixes mozilla#8987
  • Loading branch information
timvandermeij authored Jan 15, 2018
2 parents 59b2923 + afbf0eb commit 17beb68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/display/node_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class PDFNodeStreamFsFullReader extends BaseFullReader {
constructor(stream) {
super(stream);

let path = decodeURI(this._url.path);
let path = decodeURIComponent(this._url.path);

// Remove the extra slash to get right path from url like `file:///C:/`
if (fileUriRegex.test(this._url.href)) {
Expand All @@ -392,7 +392,7 @@ class PDFNodeStreamFsRangeReader extends BaseRangeReader {
constructor(stream, start, end) {
super(stream);

let path = decodeURI(this._url.path);
let path = decodeURIComponent(this._url.path);

// Remove the extra slash to get right path from url like `file:///C:/`
if (fileUriRegex.test(this._url.href)) {
Expand Down

0 comments on commit 17beb68

Please sign in to comment.