mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'm33_MDL-58027_Restore_Missing_HTMLEntities_Call' of https://github.com/scara/moodle
This commit is contained in:
commit
fc31b06a28
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user