summaryrefslogtreecommitdiffstats
path: root/Http/Authentication/DefaultAuthenticationSuccessHandler.php
diff options
context:
space:
mode:
authorChristian Flothmann <christian.flothmann@xabbuh.de>2015-04-03 18:13:34 +0200
committerChristian Flothmann <christian.flothmann@xabbuh.de>2015-09-30 09:55:52 +0200
commitd37cee9ea33b5ece6837253a15d83e0740074bba (patch)
tree476021f595a02fa111ccd0b29a38dd61cd14ea6a /Http/Authentication/DefaultAuthenticationSuccessHandler.php
parent889a989997c4b038fb4e354e57e35ede82370581 (diff)
downloadsymfony-security-d37cee9ea33b5ece6837253a15d83e0740074bba.zip
symfony-security-d37cee9ea33b5ece6837253a15d83e0740074bba.tar.gz
symfony-security-d37cee9ea33b5ece6837253a15d83e0740074bba.tar.bz2
deprecate finding deep items in request parameters
Diffstat (limited to 'Http/Authentication/DefaultAuthenticationSuccessHandler.php')
-rw-r--r--Http/Authentication/DefaultAuthenticationSuccessHandler.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Http/Authentication/DefaultAuthenticationSuccessHandler.php b/Http/Authentication/DefaultAuthenticationSuccessHandler.php
index 5fa7071..078a366 100644
--- a/Http/Authentication/DefaultAuthenticationSuccessHandler.php
+++ b/Http/Authentication/DefaultAuthenticationSuccessHandler.php
@@ -14,6 +14,7 @@ namespace Symfony\Component\Security\Http\Authentication;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Http\HttpUtils;
+use Symfony\Component\Security\Http\ParameterBagUtils;
/**
* Class with the default authentication success handling logic.
@@ -108,7 +109,7 @@ class DefaultAuthenticationSuccessHandler implements AuthenticationSuccessHandle
return $this->options['default_target_path'];
}
- if ($targetUrl = $request->get($this->options['target_path_parameter'], null, true)) {
+ if ($targetUrl = ParameterBagUtils::getRequestParameterValue($request, $this->options['target_path_parameter'])) {
return $targetUrl;
}