From ef4aec8796c72dc891b619edcd3ef24dde4829d6 Mon Sep 17 00:00:00 2001 From: William Krell Date: Mon, 20 Sep 2021 20:31:27 -0500 Subject: [PATCH] zip path resolution --- bits/21_ziputils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bits/21_ziputils.js b/bits/21_ziputils.js index dde3ad7..73a4d7e 100644 --- a/bits/21_ziputils.js +++ b/bits/21_ziputils.js @@ -27,10 +27,10 @@ function getdata(data) { return (data && data.name.slice(-4) === ".bin") ? getda /* OASIS does not comment on filename case sensitivity */ function safegetzipfile(zip, file/*:string*/) { var k = zip.FullPaths || keys(zip.files); - var f = file.toLowerCase(), g = f.replace(/\//g,'\\'); + var f = file.toLowerCase().replace(/[\/]/g, '\\'), g = f.replace(/\\/g,'\/'); for(var i=0; i