Merged fix from http://moodle.org/mod/forum/discuss.php?d=38860 (Brian Jones)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user