Closes #1878: NS_ERROR_MALFORMED_URI when accessing EBSCO via proxy (I think)
This commit is contained in:
parent
78b4c3c820
commit
0aa0966a28
1 changed files with 6 additions and 5 deletions
|
@ -1445,12 +1445,13 @@ Zotero.Utilities.Translate.prototype._convertURL = function(url) {
|
|||
const protocolRe = /^(?:(?:http|https|ftp):)/i;
|
||||
|
||||
// convert proxy to proper if applicable
|
||||
if(protocolRe.test(url)) {
|
||||
if(this._translate.translator && this._translate.translator[0]
|
||||
&& this._translate.translator[0].properToProxy) {
|
||||
url = this._translate.translator[0].properToProxy(url);
|
||||
}
|
||||
|
||||
if(protocolRe.test(url)) return url;
|
||||
return url;
|
||||
}
|
||||
|
||||
// resolve local URL
|
||||
var resolved = "";
|
||||
|
|
Loading…
Add table
Reference in a new issue