commit aeb3cf546420454896cd50d6ad26689f5ca306cc
parent e3df930ca587750b17a0d93d275af22247de1660
Author: Dan Stillman <dstillman@zotero.org>
Date: Sat, 13 Feb 2010 20:18:45 +0000
Fix "fileName.replace is not a function" WebDAV file sync error
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js
@@ -1030,7 +1030,7 @@ Zotero.Sync.Storage = new function () {
// If only one file in zip and it doesn't match the known filename,
// take our chances and use that name
- if (count == 1 && !entries.hasMore()) {
+ if (count == 1 && !entries.hasMore() && itemFileName) {
// May not be necessary, but let's be safe
itemFileName = Zotero.File.getValidFileName(itemFileName);
if (itemFileName != fileName) {