slitaz-dev-tools diff tazwikiss/rootfs/var/www/wiki/index.sh @ rev 112

tazwikiss: do not use http_helper.sh internals
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 10 21:13:41 2011 +0200 (2011-06-10)
parents 79eb86e1e0ed
children d0799b0951c5
line diff
     1.1 --- a/tazwikiss/rootfs/var/www/wiki/index.sh	Thu Jun 09 20:54:44 2011 +0200
     1.2 +++ b/tazwikiss/rootfs/var/www/wiki/index.sh	Fri Jun 10 21:13:41 2011 +0200
     1.3 @@ -111,8 +111,9 @@
     1.4  PAGE_txt="$PAGES_DIR$PAGE_TITLE.txt"
     1.5  if [ -n "$content" ]; then	# content => page
     1.6  	if authentified; then
     1.7 -		sed 's/</\&lt;/g' > $PAGE_txt <<EOT
     1.8 -$POST_content
     1.9 +		CR="$(echo -en '\r')"
    1.10 +		sed 's/</\&lt;/g;s/'$CR' /'$CR'\n/g' > $PAGE_txt <<EOT
    1.11 +$content
    1.12  EOT
    1.13  		if [ -n "$BACKUP_DIR" ]; then
    1.14  			complete_dir_s="$BACKUP_DIR$PAGE_TITLE/"