This commit is contained in:
moodler
2006-09-14 05:45:32 +00:00
parent b1d70beafa
commit 0d2b4325ec
+1
View File
@@ -385,6 +385,7 @@
html_header($course, $wdir);
if (($text != '') and confirm_sesskey()) {
$fileptr = fopen($basedir.'/'.$file,"w");
$text = preg_replace('/\x0D/', '', $text); // http://moodle.org/mod/forum/discuss.php?d=38860
fputs($fileptr, stripslashes($text));
fclose($fileptr);
displaydir($wdir);