From: moodler Date: Tue, 9 Dec 2003 08:15:34 +0000 (+0000) Subject: Fixed bug 812 about editing text files with backslashes in them. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c0f2bc84623e85a8e7a7b263b1bfe86dff03a123;p=moodle.git Fixed bug 812 about editing text files with backslashes in them. --- diff --git a/files/index.php b/files/index.php index df3213a63f..2260d1bbb9 100644 --- a/files/index.php +++ b/files/index.php @@ -335,7 +335,7 @@ echo " "; echo " "; echo " "; - print_textarea($usehtmleditor, 25, 80, 680, 400, "text", $contents); + print_textarea($usehtmleditor, 25, 80, 680, 400, "text", addslashes($contents)); echo ""; echo " "; echo "";