Skip to content

Commit

Permalink
Merge branch 'm33_MDL-58027_Restore_Missing_HTMLEntities_Call' of htt…
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Mar 14, 2017
2 parents edf1028 + bf4f857 commit fc31b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/filelib.php
Original file line number Diff line number Diff line change
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 fc31b06

Please sign in to comment.