Skip to content

Commit

Permalink
tweaked the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 16, 2012
1 parent a07f4f5 commit cd0aa37
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -172,7 +172,7 @@ private function startAuthentication(Request $request, AuthenticationException $
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());
}
}
Expand Down

0 comments on commit cd0aa37

Please sign in to comment.