File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -1991,6 +1991,7 @@ public function createForm($form, $type = 'full')
1991
1991
}
1992
1992
1993
1993
$ form ->addHeader ($ form_title );
1994
+ $ form ->protect ();
1994
1995
1995
1996
// Title.
1996
1997
if (api_get_configuration_value ('save_titles_as_html ' )) {
@@ -9401,28 +9402,16 @@ public static function exerciseGrid(
9401
9402
$ title = $ cut_title ;
9402
9403
}
9403
9404
9404
- /*$count_exercise_not_validated = (int) Event::count_exercise_result_not_validated(
9405
- $my_exercise_id,
9406
- $courseId,
9407
- $sessionId
9408
- );*/
9409
- $ move = null ;
9410
- $ class_tip = '' ;
9411
- /*if (!empty($count_exercise_not_validated)) {
9412
- $results_text = $count_exercise_not_validated == 1 ? get_lang('ResultNotRevised') : get_lang('ResultsNotRevised');
9413
- $title .= '<span class="exercise_tooltip" style="display: none;">'.$count_exercise_not_validated.' '.$results_text.' </span>';
9414
- }*/
9415
9405
$ overviewUrl = api_get_path (WEB_CODE_PATH ).'exercise/overview.php ' ;
9416
- $ url = $ move .
9406
+ $ url = Security:: remove_XSS (
9417
9407
'<a
9418
9408
' .$ alt_title .'
9419
- class=" ' .$ class_tip .'"
9420
9409
id="tooltip_ ' .$ row ['iid ' ].'"
9421
9410
href=" ' .$ overviewUrl .'? ' .api_get_cidreq ().$ mylpid .$ mylpitemid .'&exerciseId= ' .$ row ['iid ' ].'"
9422
9411
>
9423
9412
' .Display::return_icon ('quiz.png ' , $ row ['title ' ]).'
9424
9413
' .$ title .'
9425
- </a> '. PHP_EOL ;
9414
+ </a> ') ;
9426
9415
9427
9416
if (ExerciseLib::isQuizEmbeddable ($ row )) {
9428
9417
$ embeddableIcon = Display::return_icon ('om_integration.png ' , get_lang ('ThisQuizCanBeEmbeddable ' ));
You can’t perform that action at this time.
0 commit comments