summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2011-05-31 08:34:05 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2011-05-31 08:34:05 +0200
commita4192f5e344ea7eec15282754f4c75106666ee01 (patch)
treed5c200a70710b42472b7272d29faecfc7d27345e /Http
parent2798d3b4b0f385df4547aaceedf8eac93111520c (diff)
parent7a52c45e5ff0120ac59a457450e1c8ab31ae64a8 (diff)
downloadsymfony-security-a4192f5e344ea7eec15282754f4c75106666ee01.zip
symfony-security-a4192f5e344ea7eec15282754f4c75106666ee01.tar.gz
symfony-security-a4192f5e344ea7eec15282754f4c75106666ee01.tar.bz2
merged origin/master
Diffstat (limited to 'Http')
-rw-r--r--Http/Firewall/AbstractAuthenticationListener.php2
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);
}