Mercurial > hgrepos > hgweb.cgi > 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 wrap: on
line diff
--- a/s4-funcs.sh Tue Oct 25 22:42:34 2016 +0859 +++ b/s4-funcs.sh Tue Oct 25 22:45:33 2016 +0859 @@ -3362,7 +3362,7 @@ ASCII*) charset="" ;; esac ct="text/html${charset:+; charset=$charset}" - cat $bin \ + cat $bin | htmlescape \ | sed 's,^,<span></span>,' \ | _m4 -D_TITLE_="$fn" -D_CONTENT_TYPE_="$ct" \ -D_BODY_="syscmd(\`cat')" $layout/pretty.m4.txt