tweaked the previous commit
This commit is contained in:
parent
a07f4f5f5f
commit
cd0aa3781b
@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user