From 9aa5e539289b4adea391f8ddd6c6c0e3f488fb70 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 16 Dec 2006 06:12:45 +0000 Subject: [PATCH] when a URL is accessed through an EZProxy, access any associated files through the EZProxy as well (if possible) --- chrome/content/zotero/xpcom/translate.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/xpcom/translate.js b/chrome/content/zotero/xpcom/translate.js index f748262048..b86e0db632 100644 --- a/chrome/content/zotero/xpcom/translate.js +++ b/chrome/content/zotero/xpcom/translate.js @@ -1286,6 +1286,10 @@ Zotero.Translate.prototype._itemDone = function(item, attachedTo) { title = attachment.document.title; } + if(this.locationIsProxied) { + attachment.url = Zotero.Ingester.ProxyMonitor.properToProxy(attachment.url); + } + Zotero.Attachments.importFromURL(attachment.url, myID, title); } }