Skip to content

Commit

Permalink
MDL-58027 files: Restored missing htmlentities() call
Browse files Browse the repository at this point in the history
  • Loading branch information
scara committed Mar 13, 2017
1 parent 1034421 commit bf4f857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/filelib.php
Expand Up @@ -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 {
Expand Down

0 comments on commit bf4f857

Please sign in to comment.