From 12b72581abc0e5b778e16a461f42f9352cd9d741 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 13 Sep 2011 16:41:33 +0000 Subject: [PATCH] Fix Windows file export error in Zotero Standalone --- chrome/content/zotero/xpcom/translation/translate_item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translate_item.js b/chrome/content/zotero/xpcom/translation/translate_item.js index 15aa35bab..93ceb686a 100644 --- a/chrome/content/zotero/xpcom/translation/translate_item.js +++ b/chrome/content/zotero/xpcom/translation/translate_item.js @@ -646,7 +646,7 @@ Zotero.Translate.ItemGetter.prototype = { var targetFile = Components.classes["@mozilla.org/file/local;1"]. createInstance(Components.interfaces.nsILocalFile); targetFile.initWithFile(exportDir); - targetFile.appendRelativePath(attachPath); + for(var dir in attachPath.split("/")) targetFile.append(dir); // First, check that we have not gone lower than exportDir in the hierarchy var parent = targetFile, inExportFileDirectory;