From d0b1c70cb4f2615f6bd1ea52b54c96de6937e12b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 19 Jun 2023 16:02:01 +0200 Subject: [PATCH] bugfix: HEX_DECODE for prefixes looking like shell patterns --- cgilite.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgilite.sh b/cgilite.sh index 76c91b2..23f5a1c 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -92,7 +92,7 @@ HEX_DECODE(){ esac case $in in - "$pfx"[0-9a-fA-F][0-9a-fA-F]*) in="${in#${pfx}}";; + "$pfx"[0-9a-fA-F][0-9a-fA-F]*) in="${in#"${pfx}"}";; \\*) in="${in#?}"; out="${out}\\\\"; continue;; %*) in="${in#?}"; out="${out}%%"; continue;; *) att="${in%%"${pfx}"*}"; att="${att%%%*}"; att="${att%%\\*}" -- 2.39.2