diff options
author | Johannes Schmitt <schmittjoh@gmail.com> | 2011-03-05 14:30:08 +0100 |
---|---|---|
committer | Johannes Schmitt <schmittjoh@gmail.com> | 2011-03-05 14:30:08 +0100 |
commit | 89e6fe7fc0183a63d11933cfd293edac50ff7491 (patch) | |
tree | aa11dccec48446b1e6214d7b8edc029d49688d9d /Http | |
parent | 3d78a045b5c4d79d2b4582f3a85b844cc1d01474 (diff) | |
download | symfony-security-89e6fe7fc0183a63d11933cfd293edac50ff7491.zip symfony-security-89e6fe7fc0183a63d11933cfd293edac50ff7491.tar.gz symfony-security-89e6fe7fc0183a63d11933cfd293edac50ff7491.tar.bz2 |
[Security] forward the entire access denied exception instead of only the message
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Firewall/ExceptionListener.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Http/Firewall/ExceptionListener.php b/Http/Firewall/ExceptionListener.php index d8f016e..f4dc950 100644 --- a/Http/Firewall/ExceptionListener.php +++ b/Http/Firewall/ExceptionListener.php @@ -124,7 +124,7 @@ class ExceptionListener implements ListenerInterface } $subRequest = Request::create($this->errorPage); - $subRequest->attributes->set(SecurityContextInterface::ACCESS_DENIED_ERROR, $exception->getMessage()); + $subRequest->attributes->set(SecurityContextInterface::ACCESS_DENIED_ERROR, $exception); $response = $event->getSubject()->handle($subRequest, HttpKernelInterface::SUB_REQUEST, true); $response->setStatusCode(403); |