From c64633f6f6293aaa6dfc6acc1a09165bce76110a Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 14 Sep 2006 05:46:49 +0000 Subject: [PATCH] Merged fix from http://moodle.org/mod/forum/discuss.php?d=38860 (Brian Jones) --- files/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/files/index.php b/files/index.php index dc570cc0d3..0c5e131a33 100644 --- a/files/index.php +++ b/files/index.php @@ -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); -- 2.39.5