Commit bf4f857a authored by Matteo Scaramuccia's avatar Matteo Scaramuccia
Browse files

MDL-58027 files: Restored missing htmlentities() call

parent 10344212
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment