diff options
author | Antoine Hérault <antoine.herault@gmail.com> | 2011-06-25 17:15:23 +0200 |
---|---|---|
committer | Antoine Hérault <antoine.herault@gmail.com> | 2011-06-25 17:15:23 +0200 |
commit | 3f356bb5ccdae294e92ffd1729dd2f7fac199c93 (patch) | |
tree | 9dfc32c5ac2c5db90a3216c915139a6b55652ad9 /Http/EntryPoint | |
parent | f9fb667c7fab49f8644b829e702a49a687688654 (diff) | |
download | symfony-security-3f356bb5ccdae294e92ffd1729dd2f7fac199c93.zip symfony-security-3f356bb5ccdae294e92ffd1729dd2f7fac199c93.tar.gz symfony-security-3f356bb5ccdae294e92ffd1729dd2f7fac199c93.tar.bz2 |
[Security] Fix http basic authentication entry point
Diffstat (limited to 'Http/EntryPoint')
-rw-r--r-- | Http/EntryPoint/BasicAuthenticationEntryPoint.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Http/EntryPoint/BasicAuthenticationEntryPoint.php b/Http/EntryPoint/BasicAuthenticationEntryPoint.php index 4f13c90..6ba3872 100644 --- a/Http/EntryPoint/BasicAuthenticationEntryPoint.php +++ b/Http/EntryPoint/BasicAuthenticationEntryPoint.php @@ -34,7 +34,7 @@ class BasicAuthenticationEntryPoint implements AuthenticationEntryPointInterface { $response = new Response(); $response->headers->set('WWW-Authenticate', sprintf('Basic realm="%s"', $this->realmName)); - $response->setStatusCode(401, $authException->getMessage()); + $response->setStatusCode(401, $authException ? $authException->getMessage() : null); return $response; } |