]> git.mjollnir.org Git - moodle.git/commitdiff
Merged fix from http://moodle.org/mod/forum/discuss.php?d=38860 (Brian Jones)
authormoodler <moodler>
Thu, 14 Sep 2006 05:46:49 +0000 (05:46 +0000)
committermoodler <moodler>
Thu, 14 Sep 2006 05:46:49 +0000 (05:46 +0000)
files/index.php

index dc570cc0d365c60e2b0e0f328cd6366e30936194..0c5e131a33efb553b80e80140b79c926b1dda3ab 100644 (file)
             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);