www

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

commit 529799a28fd395696654a226b81a216fa7552cb1
parent 9c58d8aedc4f2fe8f3f0a1d98d98830443a12da0
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 21 Jan 2010 20:25:10 +0000

Files with spaces were saved via Create New Item from Current Page with '20' in them (stripped from '%20') -- filenames now have proper spaces


Diffstat:
Mchrome/content/zotero/xpcom/attachments.js | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js @@ -1159,9 +1159,10 @@ Zotero.Attachments = new function(){ nsIURL.fileBaseName = nsIURL.fileBaseName + '.' + tld; } - nsIURL.fileBaseName = Zotero.File.getValidFileName(nsIURL.fileBaseName); + // Pass unencoded name to getValidFileName() so that '%20' isn't stripped to '20' + nsIURL.fileBaseName = Zotero.File.getValidFileName(decodeURIComponent(nsIURL.fileBaseName)); - return nsIURL.fileName; + return decodeURIComponent(nsIURL.fileName); }