]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed bug 812 about editing text files with backslashes in them.
authormoodler <moodler>
Tue, 9 Dec 2003 08:15:34 +0000 (08:15 +0000)
committermoodler <moodler>
Tue, 9 Dec 2003 08:15:34 +0000 (08:15 +0000)
files/index.php

index df3213a63f020d9f292a98344989676f12adacac..2260d1bbb92132379391cca39762cc8466239abd 100644 (file)
                 echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
                 echo " <INPUT TYPE=hidden NAME=file VALUE=\"$file\">";
                 echo " <INPUT TYPE=hidden NAME=action VALUE=edit>";
-                print_textarea($usehtmleditor, 25, 80, 680, 400, "text", $contents);
+                print_textarea($usehtmleditor, 25, 80, 680, 400, "text", addslashes($contents));
                 echo "</TD></TR><TR><TD>";
                 echo " <INPUT TYPE=submit VALUE=\"".get_string("savechanges")."\">";
                 echo "</FORM>";