slitaz-base-files rev 209 5.4

httphelper.sh: update htmlentities
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 20 10:43:49 2012 +0100 (2012-12-20)
parents feb04530b1f7
children 571ea607314f
files rootfs/usr/lib/slitaz/httphelper.sh
line diff
     1.1 --- a/rootfs/usr/lib/slitaz/httphelper.sh	Wed Dec 19 09:38:07 2012 +0100
     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|&|\&amp;|g;s|<|\&lt;|g;s|>|\&gt;|g;s|"|\&quot;|g'
     1.8 +	echo $1 | sed -e 's|&|\&amp;|g;s|<|\&lt;|g;s|>|\&gt;|g' \
     1.9 +		-e 's|"|\&quot;|g;s|'"'"'|\&acute;|g;s|\t|\&#09;|g'
    1.10  }
    1.11  
    1.12  # MD5 crypt a string such as password (httpd -m dont give same result ?)