tazpanel diff index.cgi @ rev 267

temporary fix for editing files
author naitsirhc
date Fri Mar 09 00:40:28 2012 +0000 (2012-03-09)
parents 7e3623f26c5e
children 4f657c82beae
line diff
     1.1 --- a/index.cgi	Tue Aug 30 17:15:31 2011 +0200
     1.2 +++ b/index.cgi	Fri Mar 09 00:40:28 2012 +0000
     1.3 @@ -74,9 +74,11 @@
     1.4  	<img src="$IMAGES/help.png" />`gettext "Differences"`</a>
     1.5  <textarea name="content" rows="30" style="width: 100%;">
     1.6  $(cat $file)
     1.7 -</textarea>
     1.8 + </textarea>
     1.9  </form>
    1.10  EOT
    1.11 +#The space before textarea gets muddled when the form is submitted.
    1.12 +#It prevents anything else from getting messed up
    1.13  		elif [ "$(GET action)" == "diff" ]; then
    1.14  			echo '<pre id="diff">'
    1.15  			file_is_modified $file diff | syntax_highlighter diff