summaryrefslogtreecommitdiffstats
path: root/Http/EntryPoint
diff options
context:
space:
mode:
authorAntoine Hérault <antoine.herault@gmail.com>2011-06-25 17:15:23 +0200
committerAntoine Hérault <antoine.herault@gmail.com>2011-06-25 17:15:23 +0200
commit3f356bb5ccdae294e92ffd1729dd2f7fac199c93 (patch)
tree9dfc32c5ac2c5db90a3216c915139a6b55652ad9 /Http/EntryPoint
parentf9fb667c7fab49f8644b829e702a49a687688654 (diff)
downloadsymfony-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.php2
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;
}