From: Paul Hänsch Date: Mon, 25 Jul 2022 12:38:02 +0000 (+0200) Subject: escape CR and BR in HTML output (as previously specified) X-Git-Url: https://git.plutz.net/?p=cgilite;a=commitdiff_plain;h=5038774f89b33ecd03e407898e9d57d38245b5bb escape CR and BR in HTML output (as previously specified) --- diff --git a/cgilite.sh b/cgilite.sh index b47a3e2..2193e29 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -294,7 +294,7 @@ HTML(){ \]*) out="${out}]"; str="${str#?}";; "${CR}"*) out="${out} "; str="${str#?}";; "${BR}"*) out="${out} "; str="${str#?}";; - *) out="${out}${str%%[]&<>\"\'[]*}"; str="${str#"${str%%[]&<>\"\'[]*}"}";; + *) out="${out}${str%%[]&<>\"\'${CR}${BR}[]*}"; str="${str#"${str%%[]&<>\"\'${CR}${BR}[]*}"}";; esac; done printf %s "$out" }