From: Paul Hänsch Date: Mon, 19 Jun 2023 14:02:01 +0000 (+0200) Subject: bugfix: HEX_DECODE for prefixes looking like shell patterns X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=d0b1c70cb4f2615f6bd1ea52b54c96de6937e12b;p=cgilite bugfix: HEX_DECODE for prefixes looking like shell patterns --- 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%%\\*}"