Skip to content
Snippets Groups Projects
Commit a612c2a8 authored by Seamus Lee's avatar Seamus Lee
Browse files

Fix security/core#51 by paramatising the Event Type part of the wuere clause

parent 679b306e
Branches
Tags
No related merge requests found
......@@ -517,7 +517,8 @@ ORDER BY start_date desc
if (is_array($value)) {
$type = implode(',', $value);
}
$clauses[] = "event_type_id IN ({$type})";
$clauses[] = "event_type_id IN (%2)";
$params[2] = [$type, 'String'];
}
$eventsByDates = $this->get('eventsByDates');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment