Added proper check for $CFG->filteruploadedfiles, so that text/plain files are not converted to text/html if this is 'off' See discussion: http://moodle.org/mod/forum/discuss.php?d=40177
Added proper check for $CFG->filteruploadedfiles, so that text/plain files
are not converted to text/html if this is 'off'
See discussion: http://moodle.org/mod/forum/discuss.php?d=40177

dilawar/moodle