diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2011-05-31 08:34:05 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2011-05-31 08:34:05 +0200 |
commit | a4192f5e344ea7eec15282754f4c75106666ee01 (patch) | |
tree | d5c200a70710b42472b7272d29faecfc7d27345e | |
parent | 2798d3b4b0f385df4547aaceedf8eac93111520c (diff) | |
parent | 7a52c45e5ff0120ac59a457450e1c8ab31ae64a8 (diff) | |
download | symfony-security-a4192f5e344ea7eec15282754f4c75106666ee01.zip symfony-security-a4192f5e344ea7eec15282754f4c75106666ee01.tar.gz symfony-security-a4192f5e344ea7eec15282754f4c75106666ee01.tar.bz2 |
merged origin/master
-rw-r--r-- | Http/Firewall/AbstractAuthenticationListener.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Http/Firewall/AbstractAuthenticationListener.php b/Http/Firewall/AbstractAuthenticationListener.php index f2be84e..1af25eb 100644 --- a/Http/Firewall/AbstractAuthenticationListener.php +++ b/Http/Firewall/AbstractAuthenticationListener.php @@ -236,7 +236,7 @@ abstract class AbstractAuthenticationListener implements ListenerInterface if (null !== $this->successHandler) { $response = $this->successHandler->onAuthenticationSuccess($request, $token); } else { - $path = strtr($this->determineTargetUrl($request), '{_locale}', $session->getLocale()); + $path = str_replace('{_locale}', $session->getLocale(), $this->determineTargetUrl($request)); $response = new RedirectResponse(0 !== strpos($path, 'http') ? $request->getUriForPath($path) : $path, 302); } |