slitaz-base-files diff rootfs/usr/lib/slitaz/httphelper.sh @ rev 209
httphelper.sh: update htmlentities
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 20 10:43:49 2012 +0100 (2012-12-20) |
parents | 524eab3120ae |
children | b2311939ad7e |
line diff
1.1 --- a/rootfs/usr/lib/slitaz/httphelper.sh Tue Apr 24 10:26:35 2012 +0200 1.2 +++ b/rootfs/usr/lib/slitaz/httphelper.sh Thu Dec 20 10:43:49 2012 +0100 1.3 @@ -33,7 +33,8 @@ 1.4 } 1.5 1.6 htmlentities() { 1.7 - echo $1 | sed 's|&|\&|g;s|<|\<|g;s|>|\>|g;s|"|\"|g' 1.8 + echo $1 | sed -e 's|&|\&|g;s|<|\<|g;s|>|\>|g' \ 1.9 + -e 's|"|\"|g;s|'"'"'|\´|g;s|\t|\	|g' 1.10 } 1.11 1.12 # MD5 crypt a string such as password (httpd -m dont give same result ?)