Don't double-proxy in properToProxy
Surfaced due to changes in 7f7fe90ad5
This commit is contained in:
parent
e868c758b6
commit
9450d0797f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue