From ac89f2c40b5ee7f5d249921cb91e609f81ffa84e Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 26 Apr 2021 15:53:19 +0200 Subject: [PATCH] Exercises: Fix word "HTML" in pdf report BT#18569 --- main/exercise/exercise_show.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/exercise/exercise_show.php b/main/exercise/exercise_show.php index 56ac9d9b6f..9cc4df0a73 100755 --- a/main/exercise/exercise_show.php +++ b/main/exercise/exercise_show.php @@ -953,6 +953,9 @@ if ('export' === $action) { if (ob_get_contents()) { ob_clean(); } + + $content = Security::remove_XSS($content); + $params = [ 'filename' => api_replace_dangerous_char( $objExercise->name.' '.