From 151d0fd26ba716149af1c4446bde8692e8e60c32 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sun, 24 Mar 2024 22:50:40 +0700 Subject: [PATCH] unlzp IE6-8 support --- generate-pac.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate-pac.sh b/generate-pac.sh index 0f335eb..e06a7a7 100755 --- a/generate-pac.sh +++ b/generate-pac.sh @@ -70,7 +70,7 @@ function unlzp(d, m, lim) { var mask = 0, maskpos = 0, dpos = 0, out = Array(8), outpos = 0, outfinal = ''; for (;;) { - mask = m[maskpos++]; + mask = m.charAt(maskpos++); if (!mask) break mask = mask.charCodeAt(0); @@ -79,7 +79,7 @@ function unlzp(d, m, lim) { if (mask & (1 << i)) { c = table[hash]; } else { - c = d[dpos++]; + c = d.charAt(dpos++); if (!c) break c = c.charCodeAt(0);