Commit fa285e8c authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Remove possible slashes from slug when modifying for events

parent ad7152bb
Pipeline #9020 failed with stages
in 1 minute and 2 seconds
......@@ -107,7 +107,7 @@ class DataHandlerHook
{
$slug = $params['slug'];
if ($params['record']['startdate']) {
$slug = date('Ymd', strtotime($params['record']['startdate'])) . '-' . $params['record']['title'];
$slug = date('Ymd', strtotime($params['record']['startdate'])) . '-' . str_replace('/', '-', $params['record']['title']);
}
return $slug;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment