Skip to content
Permalink
Browse files

Remove warning + notice messages in agenda (path disclosure) - refs #…

  • Loading branch information...
ywarnier committed Dec 3, 2018
1 parent 5e61c2b commit da8a93eea4b438e9d0433b7cb989d3ecafbaf65e
Showing with 8 additions and 1 deletion.
  1. +8 −1 main/calendar/agenda.php
@@ -81,7 +81,12 @@ function add_image_form() {
Event::event_access_tool(TOOL_CALENDAR_EVENT);
if ($type === 'fromjs') {
$id_list = explode('_', $eventId);
// split the "id" parameter only if string and there are _ separators
if (preg_match('/_/', $eventId)) {
$id_list = explode('_', $eventId);
} else {
$id_list = $eventId;
}
$eventId = $id_list[1];
$event_type = $id_list[0];
$event_type = $event_type === 'platform' ? 'admin' : $event_type;
@@ -306,6 +311,8 @@ function add_image_form() {
"url" => $url,
"name" => get_lang('Agenda'),
];
} else {
$actionName = '';
}
// Tool introduction

0 comments on commit da8a93e

Please sign in to comment.
You can’t perform that action at this time.