Don't proxify proxied hosts
This commit is contained in:
parent
f04ae4ce47
commit
82998e986e
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ Zotero.Translators = new function() {
|
||||||
} else {
|
} else {
|
||||||
// in Firefox, push the converterFunction
|
// in Firefox, push the converterFunction
|
||||||
converterFunctions.push(new function() {
|
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, "$$$$");
|
var proxyHost = proxyHosts[j-1].replace(/\$/g, "$$$$");
|
||||||
return function(uri) { return uri.replace(re, "$&."+proxyHost) };
|
return function(uri) { return uri.replace(re, "$&."+proxyHost) };
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue