mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°8017 - Security - dependabot - Symfony's VarDumper vulnerable to un… (#731)
Upgrade all Symfony components to last security fix (~6.4.0)
This commit is contained in:
@@ -24,7 +24,7 @@ class RouteConfigurator
|
||||
|
||||
protected $parentConfigurator;
|
||||
|
||||
public function __construct(RouteCollection $collection, RouteCollection $route, string $name = '', CollectionConfigurator $parentConfigurator = null, array $prefixes = null)
|
||||
public function __construct(RouteCollection $collection, RouteCollection $route, string $name = '', ?CollectionConfigurator $parentConfigurator = null, ?array $prefixes = null)
|
||||
{
|
||||
$this->collection = $collection;
|
||||
$this->route = $route;
|
||||
@@ -42,7 +42,14 @@ class RouteConfigurator
|
||||
*/
|
||||
final public function host(string|array $host): static
|
||||
{
|
||||
$previousRoutes = clone $this->route;
|
||||
$this->addHost($this->route, $host);
|
||||
foreach ($previousRoutes as $name => $route) {
|
||||
if (!$this->route->get($name)) {
|
||||
$this->collection->remove($name);
|
||||
}
|
||||
}
|
||||
$this->collection->addCollection($this->route);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user