summaryrefslogtreecommitdiffstats
path: root/Http/EntryPoint/DigestAuthenticationEntryPoint.php
diff options
context:
space:
mode:
authorAntoine Hérault <antoine.herault@gmail.com>2011-06-25 17:43:23 +0200
committerAntoine Hérault <antoine.herault@gmail.com>2011-06-25 17:43:23 +0200
commitf9634377814396a61847364e65d8c3182f103fea (patch)
treea86290c09a3835787d3e4afa952246cda0db0117 /Http/EntryPoint/DigestAuthenticationEntryPoint.php
parent3f356bb5ccdae294e92ffd1729dd2f7fac199c93 (diff)
downloadsymfony-security-f9634377814396a61847364e65d8c3182f103fea.zip
symfony-security-f9634377814396a61847364e65d8c3182f103fea.tar.gz
symfony-security-f9634377814396a61847364e65d8c3182f103fea.tar.bz2
[Security] Fix http digest authentication entry point
Diffstat (limited to 'Http/EntryPoint/DigestAuthenticationEntryPoint.php')
-rw-r--r--Http/EntryPoint/DigestAuthenticationEntryPoint.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Http/EntryPoint/DigestAuthenticationEntryPoint.php b/Http/EntryPoint/DigestAuthenticationEntryPoint.php
index e422cb0..66f1e42 100644
--- a/Http/EntryPoint/DigestAuthenticationEntryPoint.php
+++ b/Http/EntryPoint/DigestAuthenticationEntryPoint.php
@@ -57,7 +57,7 @@ class DigestAuthenticationEntryPoint implements AuthenticationEntryPointInterfac
$response = new Response();
$response->headers->set('WWW-Authenticate', $authenticateHeader);
- $response->setStatusCode(401, $authException->getMessage());
+ $response->setStatusCode(401, $authException ? $authException->getMessage() : null);
return $response;
}