Skip to content

Commit

Permalink
[FrameworkBundle] made csrf_secret parameter optional
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Sep 10, 2010
1 parent 7760223 commit 74bc9d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php
Expand Up @@ -26,8 +26,8 @@ class FrameworkBundle extends Bundle
*/
public function boot()
{
if ($secret = $this->container->getParameter('csrf_secret')) {
Form::setDefaultCsrfSecret($secret);
if ($this->container->hasParameter('csrf_secret')) {
Form::setDefaultCsrfSecret($this->container->getParameter('csrf_secret'));
Form::enableDefaultCsrfProtection();
}
}
Expand Down

0 comments on commit 74bc9d4

Please sign in to comment.