From 5a928ff5eaf76eb32f5320e25c4bbaf153113896 Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Thu, 7 Dec 2006 21:39:35 +0000 Subject: [PATCH] Bug 362686: install-app from zip fails, patch by Tuukka Tolvanen , r=bsmedberg --- xulrunner/setup/nsXULAppInstall.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xulrunner/setup/nsXULAppInstall.js b/xulrunner/setup/nsXULAppInstall.js index 30d9ac6d5fa3..c467e17f5bd9 100644 --- a/xulrunner/setup/nsXULAppInstall.js +++ b/xulrunner/setup/nsXULAppInstall.js @@ -178,7 +178,7 @@ zipExtractor.prototype = { var file = aDestination.clone(); var dirs = aZipEntry.split(/\//); - var isDirectory = path.match(/\/$/) != null; + var isDirectory = /\/$/.test(aZipEntry); var end = dirs.length; if (!isDirectory) @@ -193,7 +193,7 @@ zipExtractor.prototype = { if (!isDirectory) { file.append(dirs[end]); - aZipReader.extract(path, file); + aZipReader.extract(aZipEntry, file); } } };