mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 10:04:41 +00:00
Mvc/Router - normalize multiple slashes in paths, closes https://github.com/opnsense/core/issues/7709
This commit is contained in:
parent
eded37411f
commit
0ebd95476a
@ -165,7 +165,8 @@ class Router
|
||||
*/
|
||||
private function parsePath(string $path, array $defaults): array
|
||||
{
|
||||
$pathElements = explode("/", rtrim($path, '/'));
|
||||
$pathElements = array_values(array_filter(explode("/", $path)));
|
||||
|
||||
$result = [
|
||||
"namespace" => null,
|
||||
"controller" => null,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user