commit 12ed941e761603be830de9f18284aab7b44d106d
parent fdb31b17bc5f717396d55870987779ca2ce48b0a
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 3 Apr 2013 04:23:45 -0400
Don't double-encode extended characters in relative paths
Fixes #287
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js
@@ -1546,7 +1546,7 @@ Zotero.Item.prototype.save = function() {
let attachmentFile = Components.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile);
try {
- attachmentFile.initWithPath(path);
+ attachmentFile.persistentDescriptor = path;
}
catch (e) {
Zotero.debug(e, 1);
@@ -1981,7 +1981,7 @@ Zotero.Item.prototype.save = function() {
let attachmentFile = Components.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile);
try {
- attachmentFile.initWithPath(path);
+ attachmentFile.persistentDescriptor = path;
}
catch (e) {
Zotero.debug(e, 1);