This commit is contained in:
moodler
2006-09-14 05:46:49 +00:00
parent 09ad59dcb8
commit c64633f6f6
+1
View File
@@ -383,6 +383,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);