diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2011-05-30 22:52:35 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2011-05-30 22:52:35 +0200 |
commit | 7a52c45e5ff0120ac59a457450e1c8ab31ae64a8 (patch) | |
tree | f8831ad7e8d2162545e77da6896ce3f57e0510a7 /Http | |
parent | 2acac06004a24699d9a5c257d143446272b88d38 (diff) | |
download | symfony-security-7a52c45e5ff0120ac59a457450e1c8ab31ae64a8.zip symfony-security-7a52c45e5ff0120ac59a457450e1c8ab31ae64a8.tar.gz symfony-security-7a52c45e5ff0120ac59a457450e1c8ab31ae64a8.tar.bz2 |
[Security] fixed wrong function call
Diffstat (limited to 'Http')
-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 6a1adfa..8df4bae 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); } |