Permalink
Browse files

Added fix from http://moodle.org/mod/forum/discuss.php?d=38860#178716

  • Loading branch information...
1 parent b1d70be commit 0d2b4325ec871e394c74a5414ecc17a9f53d693f moodler committed Sep 14, 2006
Showing with 1 addition and 0 deletions.
  1. +1 −0 files/index.php
View
@@ -385,6 +385,7 @@ function set_value(txt) {
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);

0 comments on commit 0d2b432

Please sign in to comment.