|
|
@ -1925,7 +1925,7 @@ if (typeof PDFJSDev === 'undefined' || !PDFJSDev.test('MOZCENTRAL')) { |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case 'relative or authority': |
|
|
|
case 'relative or authority': |
|
|
|
if ('/' === c && '/' === input[cursor+1]) { |
|
|
|
if ('/' === c && '/' === input[cursor + 1]) { |
|
|
|
state = 'authority ignore slashes'; |
|
|
|
state = 'authority ignore slashes'; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
err('Expected /, got: ' + c); |
|
|
|
err('Expected /, got: ' + c); |
|
|
@ -1970,8 +1970,8 @@ if (typeof PDFJSDev === 'undefined' || !PDFJSDev.test('MOZCENTRAL')) { |
|
|
|
this._password = base._password; |
|
|
|
this._password = base._password; |
|
|
|
state = 'fragment'; |
|
|
|
state = 'fragment'; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
var nextC = input[cursor+1]; |
|
|
|
var nextC = input[cursor + 1]; |
|
|
|
var nextNextC = input[cursor+2]; |
|
|
|
var nextNextC = input[cursor + 2]; |
|
|
|
if ('file' !== this._scheme || !ALPHA.test(c) || |
|
|
|
if ('file' !== this._scheme || !ALPHA.test(c) || |
|
|
|
(nextC !== ':' && nextC !== '|') || |
|
|
|
(nextC !== ':' && nextC !== '|') || |
|
|
|
(EOF !== nextNextC && '/' !== nextNextC && '\\' !== nextNextC && |
|
|
|
(EOF !== nextNextC && '/' !== nextNextC && '\\' !== nextNextC && |
|
|
|