Skip to content

Commit 94706d7

Browse files
committed
Security - Fix possible XSS attack vector using teacher role - reported by Javier Bloem
1 parent 4634c58 commit 94706d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/inc/lib/banner.lib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
484484
if (!empty($_course) && !isset($_GET['hide_course_breadcrumb'])) {
485485

486486
$navigation_item['url'] = $web_course_path . $_course['path'].'/index.php'.(!empty($session_id) ? '?id_session='.$session_id : '');
487+
$_course['name'] = api_htmlentities($_course['name']);
487488
$course_title = cut($_course['name'], MAX_LENGTH_BREADCRUMB);
488489

489490
switch (api_get_setting('breadcrumbs_course_homepage')) {

0 commit comments

Comments
 (0)