www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 12b72581abc0e5b778e16a461f42f9352cd9d741
parent e80914416280245a10fc720c0b0f2154c21cdc30
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue, 13 Sep 2011 16:41:33 +0000

Fix Windows file export error in Zotero Standalone


Diffstat:
Mchrome/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 @@ -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;