8000 Fix for using route name as check_path. · phreaknerd/symfony@0024ddc · GitHub
[go: up one dir, main page]

Skip to content

Commit 0024ddc

Browse files
committed
Fix for using route name as check_path.
1 parent e4ebffb commit 0024ddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $facto
274274
continue;
275275
}
276276

277-
if (!preg_match('#'.$firewall['pattern'].'#', $firewall[$k]['check_path'])) {
277+
if (false !== strpos('/', $firewall[$k]['check_path']) && !preg_match('#'.$firewall['pattern'].'#', $firewall[$k]['check_path'])) {
278278
throw new \LogicException(sprintf('The check_path "%s" for login method "%s" is not matched by the firewall pattern "%s".', $firewall[$k]['check_path'], $k, $firewall['pattern']));
279279
}
280280
}

0 commit comments

Comments
 (0)
0