MDL-29442 add missing utf-8 to entity html encoding and decoding

This commit is contained in:
Petr Škoda
2012-12-09 18:22:16 +01:00
parent 325e266e95
commit f48902e139
10 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -2286,7 +2286,7 @@ function send_file($path, $filename, $lifetime = 'default' , $filter=0, $pathiss
$options = new stdClass();
$options->newlines = false;
$options->noclean = true;
$text = htmlentities($pathisstring ? $path : implode('', file($path)));
$text = htmlentities($pathisstring ? $path : implode('', file($path)), ENT_QUOTES, 'UTF-8');
$output = '<pre>'. format_text($text, FORMAT_MOODLE, $options, $COURSE->id) .'</pre>';
readstring_accel($output, $mimetype, false);