From aeb3cf546420454896cd50d6ad26689f5ca306cc Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 13 Feb 2010 20:18:45 +0000 Subject: [PATCH] Fix "fileName.replace is not a function" WebDAV file sync error --- chrome/content/zotero/xpcom/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index cfff37388..87a6caf4b 100644 --- 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) {