Merge branch 'm33_MDL-58027_Restore_Missing_HTMLEntities_Call' of https://github.com/scara/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2017-03-15 00:37:02 +01:00
commit fc31b06a28

View File

@ -2264,7 +2264,7 @@ function send_file($path, $filename, $lifetime = null , $filter=0, $pathisstring
$options->newlines = false;
$options->noclean = true;
if (is_object($path)) {
$text = $path->get_content();
$text = htmlentities($path->get_content(), ENT_QUOTES, 'UTF-8');
} else if ($pathisstring) {
$text = htmlentities($path, ENT_QUOTES, 'UTF-8');
} else {