Skip to content

Commit

Permalink
changed decodeURI to decodeURIComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
shikhar-scs committed Jan 15, 2018
1 parent 59b2923 commit afbf0eb
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 afbf0eb

Please sign in to comment.