Don't double-proxy in properToProxy
Surfaced due to changes in 7f7fe90ad5
This commit is contained in:
parent
e868c758b6
commit
9450d0797f
|
@ -254,7 +254,7 @@ Zotero.Translators = new function() {
|
|||
}
|
||||
} else {
|
||||
converterFunctions.push(new function() {
|
||||
var re = new RegExp('^https?://(?:[^/]\\.)?'+Zotero.Utilities.quotemeta(properHosts[j-1]), "gi");
|
||||
var re = new RegExp('^https?://(?:[^/]+\\.)?'+Zotero.Utilities.quotemeta(properHosts[j-1]+'/'), "gi");
|
||||
var proxyHost = proxyHosts[j-1].replace(/\$/g, "$$$$");
|
||||
return function(uri) { return uri.replace(re, "$&."+proxyHost) };
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user