From 1f2b918f5e985a00c2ae51c50cb854f8e4f40164 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Wed, 19 Jan 2022 12:51:06 -0500 Subject: [PATCH] Course home: Don't allow custom icon for plugin-authoring tool - refs BT#19464 --- main/course_info/tools.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/course_info/tools.php b/main/course_info/tools.php index 53d8a7d375..6025cb9142 100644 --- a/main/course_info/tools.php +++ b/main/course_info/tools.php @@ -121,6 +121,10 @@ switch ($action) { $iconsTools .= Display::page_header(get_lang('CustomizeIcons'), null, 'h4'); $iconsTools .= '
'; foreach ($toolList as $tool) { + if (str_contains($tool['link'], '../plugin/')) { + continue; + } + $tool['name'] = Security::remove_XSS(stripslashes($tool['name'])); $toolIconName = 'Tool'.api_underscore_to_camel_case($tool['name']); $toolIconName = isset($$toolIconName) ? get_lang($toolIconName) : $tool['name'];