diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2012-06-16 18:27:53 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2012-06-16 18:27:53 +0200 |
commit | ed6dd939533f929a14c629a91770879c00997600 (patch) | |
tree | c36138b22f710fa9c8bbfdb547c3672b42fb1997 /Http | |
parent | e45d3158c61acf37ecd0b970901e76f0024fd633 (diff) | |
download | symfony-security-ed6dd939533f929a14c629a91770879c00997600.zip symfony-security-ed6dd939533f929a14c629a91770879c00997600.tar.gz symfony-security-ed6dd939533f929a14c629a91770879c00997600.tar.bz2 |
tweaked the previous commit
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 2d8de37..b704262 100644 --- a/Http/Firewall/ExceptionListener.php +++ b/Http/Firewall/ExceptionListener.php @@ -172,7 +172,7 @@ class ExceptionListener protected function setTargetPath(Request $request) { // session isn't required when using http basic authentication mechanism for example - if ($request->hasSession() && 'GET' == $request->getMethod()) { + if ($request->hasSession() && $request->isMethodSafe()) { $request->getSession()->set('_security.target_path', $request->getUri()); } } |