]> git.plutz.net Git - cgilite/commitdiff
bugfix: HEX_DECODE for prefixes looking like shell patterns
authorPaul Hänsch <paul@plutz.net>
Mon, 19 Jun 2023 14:02:01 +0000 (16:02 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 19 Jun 2023 14:02:01 +0000 (16:02 +0200)
cgilite.sh

index 76c91b2c05dd98c4b1bc5410c0eec250f5eb7a4c..23f5a1cf98fb8d5327fd9317b11edecc04bc4e76 100755 (executable)
@@ -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%%\\*}"