Agenda: Fix type paremeter #security

webservicelpcreate
Julio Montoya 5 years ago committed by admin beeznest
parent 98d92a1095
commit c9f120b83e
  1. 3
      main/calendar/agenda_list.php

@ -12,7 +12,8 @@ $logInfo = [
];
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),

Loading…
Cancel
Save