summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
authorJohannes Schmitt <schmittjoh@gmail.com>2011-05-14 16:20:05 +0200
committerJohannes Schmitt <schmittjoh@gmail.com>2011-05-14 16:21:27 +0200
commit1f646e86a8e3f4667906510041d5426931f75a6f (patch)
tree310912e164795851dd6084e7e3b18408d7e91af4 /Http
parent23af74b0ee97f7dd22d53b70c23b0136f6ea8428 (diff)
downloadsymfony-security-1f646e86a8e3f4667906510041d5426931f75a6f.zip
symfony-security-1f646e86a8e3f4667906510041d5426931f75a6f.tar.gz
symfony-security-1f646e86a8e3f4667906510041d5426931f75a6f.tar.bz2
[Security/Http] {_locale} can be used as placeholder in target path generation
fixes #861
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 2b2db40..3d438bd 100644
--- a/Http/Firewall/AbstractAuthenticationListener.php
+++ b/Http/Firewall/AbstractAuthenticationListener.php
@@ -222,7 +222,7 @@ abstract class AbstractAuthenticationListener implements ListenerInterface
if (null !== $this->successHandler) {
$response = $this->successHandler->onAuthenticationSuccess($request, $token);
} else {
- $path = $this->determineTargetUrl($request);
+ $path = strtr($this->determineTargetUrl($request), '{_locale}', $session->getLocale());
$response = new RedirectResponse(0 !== strpos($path, 'http') ? $request->getUriForPath($path) : $path, 302);
}