X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=cgilite.sh;h=23f5a1cf98fb8d5327fd9317b11edecc04bc4e76;hb=0c5f738e6527398efe2cc495a664334073b9987a;hp=b915a8fb83e4971817ad98ba0818d2a15635bfaa;hpb=d61539cdd435eb812053104ab5a12700607732be;p=cgilite diff --git a/cgilite.sh b/cgilite.sh index b915a8f..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%%\\*}" @@ -313,6 +313,7 @@ URL(){ \&*) out="${out}%26"; str="${str#?}";; \"*) out="${out}%22"; str="${str#?}";; \'*) out="${out}%27"; str="${str#?}";; + \`*) out="${out}%60"; str="${str#?}";; \?*) out="${out}%3F"; str="${str#?}";; \#*) out="${out}%23"; str="${str#?}";; \[*) out="${out}%5B"; str="${str#?}";;