Don't double-encode extended characters in relative paths

Fixes #287
This commit is contained in:
Dan Stillman 2013-04-03 04:23:45 -04:00
parent fdb31b17bc
commit 12ed941e76

View file

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