diff --git a/chrome/content/zotero/xpcom/storage/storageLocal.js b/chrome/content/zotero/xpcom/storage/storageLocal.js index f61d538f8..382c94686 100644 --- a/chrome/content/zotero/xpcom/storage/storageLocal.js +++ b/chrome/content/zotero/xpcom/storage/storageLocal.js @@ -911,7 +911,7 @@ Zotero.Sync.Storage.Local = { // For advertising junk files, ignore a bug on Windows where // destFile.create() works but zipReader.extract() doesn't // when the path length is close to 255. - if (destFile.leafName.match(/[a-zA-Z0-9+=]{130,}/)) { + if (OS.Path.basename(destPath).match(/[a-zA-Z0-9+=]{130,}/)) { var msg = "Ignoring error extracting '" + destPath + "'"; Zotero.debug(msg, 2); Zotero.debug(e, 2);