From 47a5aafda30f8823a1eb84dceff56e90bf53c82e Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 12 Nov 2012 00:42:41 -0500 Subject: [PATCH] Remap attachment URLs so that they are saved through the proxy --- chrome/content/zotero/xpcom/translation/translate.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index f9f4197691..ac2dd7f02f 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -598,6 +598,17 @@ Zotero.Translate.Sandbox = { } } } + + // Remap attachment (but not link) URLs + var properToProxy = translate.translator[0].properToProxy; + if(properToProxy && item.attachments) { + for(var i=0; i