'security' => array(
'uri_filter' => array(
'htmlentities',
function($uri) {
return str_replace(' ', '', ucwords(str_replace('-', ' ', $uri)));
},
),
),
is_array($config) and \Config::set('security.'.$setting, array_keys(array_flip($config)));by
is_array($config) and \Config::set('security.'.$setting, array_unique($config));fix it?
try {
$config = \Config::get('security.'.$setting, array());
is_array($config) and \Config::set('security.'.$setting, array_keys(array_flip($config)));
} catch (\ErrorException $e) {
// if array contains anonymous function, don't bother trying to remove duplicates
continue;
}
It looks like you're new here. If you want to get involved, click one of these buttons!