From 9450d0797f648453288b1b59d9daa692dcba7e8a Mon Sep 17 00:00:00 2001 From: Aurimas Vinckevicius Date: Fri, 5 Jun 2015 15:15:47 -0500 Subject: [PATCH] Don't double-proxy in properToProxy Surfaced due to changes in 7f7fe90ad5fc21502fb1ab2e84f793628cd9892d --- chrome/content/zotero/xpcom/translation/translator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translator.js b/chrome/content/zotero/xpcom/translation/translator.js index d933b821d..c4277658f 100644 --- a/chrome/content/zotero/xpcom/translation/translator.js +++ b/chrome/content/zotero/xpcom/translation/translator.js @@ -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) }; });