MDL-58027 files: Restored missing htmlentities() call

This commit is contained in:
Matteo Scaramuccia
2017-03-13 22:24:33 +01:00
parent 1034421264
commit bf4f857acf
+1 -1
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 {