Fix typo
This commit is contained in:
parent
e1433bb4bf
commit
cf2f8c828b
|
@ -1085,7 +1085,7 @@ Zotero.Utilities.Translate.prototype._convertURL = function(url) {
|
||||||
} else {
|
} else {
|
||||||
if(protocolRe.test(url)) return url;
|
if(protocolRe.test(url)) return url;
|
||||||
|
|
||||||
if(uri.indexOf(":") !== -1) {
|
if(url.indexOf(":") !== -1) {
|
||||||
// don't allow protocol switches
|
// don't allow protocol switches
|
||||||
throw "Invalid URL supplied for HTTP request";
|
throw "Invalid URL supplied for HTTP request";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user