tazpanel rev 340

Rude fix '%0' bug in file editor (still FIXME: editor combines several spaces into one)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 24 13:45:23 2013 +0000 (2013-01-24)
parents 0d5d3fd19825
children 96f10511ef91
files index.cgi
line diff
     1.1 --- a/index.cgi	Sat Jan 05 19:50:31 2013 +0100
     1.2 +++ b/index.cgi	Thu Jan 24 13:45:23 2013 +0000
     1.3 @@ -94,8 +94,9 @@
     1.4  			file_is_modified $file diff | syntax_highlighter diff
     1.5  			echo '</pre>'
     1.6  		else
     1.7 +			R=$(echo -en '\r')
     1.8  			[ -n "$(POST content)" ] &&
     1.9 -				sed "s/`echo -en '\r'` /\n/g" > $file <<EOT
    1.10 +				sed "s/$R /\n/g;s/$R%0//g" > $file <<EOT
    1.11  $(POST content)
    1.12  EOT
    1.13  			cat <<EOT