diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2013-09-06 15:51:21 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2013-09-06 16:13:07 +0200 |
commit | 21ac0805b6ab455862ecadad5f1bfb9a524c4087 (patch) | |
tree | 5e649e06de3f75570ec473dce73cd078fcff07f0 /Http | |
parent | 97bcb8a6101547accf394f5aa4d6c34af9eda7f3 (diff) | |
download | symfony-security-21ac0805b6ab455862ecadad5f1bfb9a524c4087.zip symfony-security-21ac0805b6ab455862ecadad5f1bfb9a524c4087.tar.gz symfony-security-21ac0805b6ab455862ecadad5f1bfb9a524c4087.tar.bz2 |
[Security] fixed a leak in ExceptionListener
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Firewall/ExceptionListener.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Http/Firewall/ExceptionListener.php b/Http/Firewall/ExceptionListener.php index 0f81d1b..b2c8862 100644 --- a/Http/Firewall/ExceptionListener.php +++ b/Http/Firewall/ExceptionListener.php @@ -76,6 +76,10 @@ class ExceptionListener */ public function onKernelException(GetResponseForExceptionEvent $event) { + // we need to remove ourselves as the exception listener can be + // different depending on the Request + $event->getDispatcher()->removeListener(KernelEvents::EXCEPTION, array($this, 'onKernelException')); + $exception = $event->getException(); $request = $event->getRequest(); |