Don't proxify proxied hosts

This commit is contained in:
Aurimas Vinckevicius 2015-02-09 00:57:56 -06:00
parent f04ae4ce47
commit 82998e986e

View file

@ -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) };
}); });