kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #1891 from jmoenig/reportURL-patch
Fix reportURL for URLs that have // in the middleupd4.1
commit
be72e053e6
|
@ -2270,7 +2270,7 @@ Process.prototype.reportURL = function (url) {
|
||||||
var response;
|
var response;
|
||||||
if (!this.httpRequest) {
|
if (!this.httpRequest) {
|
||||||
// use the location protocol unless the user specifies otherwise
|
// use the location protocol unless the user specifies otherwise
|
||||||
if (url.indexOf('//') < 0) {
|
if (url.indexOf('//') < 0 || url.indexOf('//') > 8) {
|
||||||
if (location.protocol === 'file:') {
|
if (location.protocol === 'file:') {
|
||||||
// allow requests from locally loaded sources
|
// allow requests from locally loaded sources
|
||||||
url = 'https://' + url;
|
url = 'https://' + url;
|
||||||
|
|
Ładowanie…
Reference in New Issue