Skip to content

Commit

Permalink
Agenda: Fix type paremeter #security
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Jan 27, 2021
1 parent 33754fe commit d939402
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/calendar/agenda_list.php
Expand Up @@ -12,7 +12,8 @@
];
Event::registerLog($logInfo);

$type = isset($_REQUEST['type']) ? $_REQUEST['type'] : null;
$typeList = ['personal', 'course', 'admin', 'platform'];
$type = isset($_REQUEST['type']) && in_array($_REQUEST['type'], $typeList, true) ? $_REQUEST['type'] : null;

$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'calendar/agenda_js.php?type='.Security::remove_XSS($type),
Expand Down

0 comments on commit d939402

Please sign in to comment.