Skip to content
Browse files

Fix for using route name as check_path.

  • Loading branch information...
1 parent e4ebffb commit 0024ddce9c4f0c0a25835286ddaf187f8b6ced44 @johannes85 johannes85 committed Apr 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php
View
2 src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php
@@ -274,7 +274,7 @@ private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $facto
continue;
}
- if (!preg_match('#'.$firewall['pattern'].'#', $firewall[$k]['check_path'])) {
+ if (false !== strpos('/', $firewall[$k]['check_path']) && !preg_match('#'.$firewall['pattern'].'#', $firewall[$k]['check_path'])) {
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']));
}
}

0 comments on commit 0024ddc

Please sign in to comment.
Something went wrong with that request. Please try again.