X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=cgilite.sh;h=e145f2eebe173be82475cde1ec60fb200a14ed63;hp=2e538324c0a8b5ec45f6fb2235f254fcf359db22;hb=147c7222675fd027873faa7e921e2679d99e71cc;hpb=238f0f8a2932b5ba66f7139c227eaaeb5dd7a013 diff --git a/cgilite.sh b/cgilite.sh index 2e53832..e145f2e 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -202,6 +202,7 @@ HTML(){ \'*) out="${out}'";; \[*) out="${out}[";; \]*) out="${out}]";; + "${CR}"*) out="${out} ";; "${BR}"*) out="${out} ";; *) out="${out}${str%"${str#?}"}";; esac @@ -224,6 +225,8 @@ URL(){ \[*) out="${out}%5B";; \]*) out="${out}%5D";; \ *) out="${out}%20";; + " "*) out="${out}%09";; + "${CR}"*) out="${out}%0D";; "${BR}"*) out="${out}%0A";; %*) out="${out}%25";; *) out="${out}${str%"${str#?}"}";;