Fix Windows file export error in Zotero Standalone

This commit is contained in:
Simon Kornblith 2011-09-13 16:41:33 +00:00
parent e809144162
commit 12b72581ab

View File

@ -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;