s4

changeset 347:332765572341

Text files in <pre> should be htmlescaped
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 25 Oct 2016 22:45:33 +0859
parents 4f06842488d3
children 8313d71bc1af
files s4-funcs.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Tue Oct 25 22:42:34 2016 +0859
     1.2 +++ b/s4-funcs.sh	Tue Oct 25 22:45:33 2016 +0859
     1.3 @@ -3362,7 +3362,7 @@
     1.4  	ASCII*)	charset=""	;;
     1.5        esac
     1.6        ct="text/html${charset:+; charset=$charset}"
     1.7 -      cat $bin \
     1.8 +      cat $bin | htmlescape \
     1.9  	  | sed 's,^,<span></span>,' \
    1.10  	  | _m4 -D_TITLE_="$fn" -D_CONTENT_TYPE_="$ct" \
    1.11  		-D_BODY_="syscmd(\`cat')" $layout/pretty.m4.txt