X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=cgilite.sh;h=90d65577648d2d78efa7d349e90677984f87c436;hb=4814ae28928f948f44bdf0b8823226120a442dfb;hp=03541b41829355d69287596ed40041dccf8545e1;hpb=f38e4332eb9d1244b9a421c6e34436aaccb541eb;p=serve0 diff --git a/cgilite.sh b/cgilite.sh index 03541b4..90d6557 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -313,7 +313,7 @@ URL(){ "${CR}"*) out="${out}%0D"; str="${str#?}";; "${BR}"*) out="${out}%0A"; str="${str#?}";; %*) out="${out}%25"; str="${str#?}";; - *) out="${out}${str%%[]&\"\'# ${CR}${BR}[]*}"; str="${str#"${str%%[]&\"\'# ${CR}${BR}[]*}"}";; + *) out="${out}${str%%[]&\"\'\?# ${CR}${BR}%[]*}"; str="${str#"${str%%[]&\"\'\?# ${CR}${BR}%[]*}"}";; esac; done printf %s "$out" }