diff options
author | Johannes Schmitt <schmittjoh@gmail.com> | 2011-05-10 11:22:28 +0200 |
---|---|---|
committer | Johannes Schmitt <schmittjoh@gmail.com> | 2011-05-10 11:22:28 +0200 |
commit | d01acca4e159a5537fb7ceb854d284bd7f26887d (patch) | |
tree | ee4297142a376ed1737134cca9b400028088df6a | |
parent | bcf9c94dfabc331d569bc564b12660f2a03ad4b3 (diff) | |
download | symfony-security-d01acca4e159a5537fb7ceb854d284bd7f26887d.zip symfony-security-d01acca4e159a5537fb7ceb854d284bd7f26887d.tar.gz symfony-security-d01acca4e159a5537fb7ceb854d284bd7f26887d.tar.bz2 |
[Security] use deep flag when retrieving username + password
-rw-r--r-- | Http/Firewall/AbstractAuthenticationListener.php | 2 | ||||
-rw-r--r-- | Http/Firewall/UsernamePasswordFormAuthenticationListener.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Http/Firewall/AbstractAuthenticationListener.php b/Http/Firewall/AbstractAuthenticationListener.php index 6bad96f..2b2db40 100644 --- a/Http/Firewall/AbstractAuthenticationListener.php +++ b/Http/Firewall/AbstractAuthenticationListener.php @@ -246,7 +246,7 @@ abstract class AbstractAuthenticationListener implements ListenerInterface return $this->options['default_target_path']; } - if ($targetUrl = $request->get($this->options['target_path_parameter'])) { + if ($targetUrl = $request->get($this->options['target_path_parameter'], null, true)) { return $targetUrl; } diff --git a/Http/Firewall/UsernamePasswordFormAuthenticationListener.php b/Http/Firewall/UsernamePasswordFormAuthenticationListener.php index c8b06ee..4ad456c 100644 --- a/Http/Firewall/UsernamePasswordFormAuthenticationListener.php +++ b/Http/Firewall/UsernamePasswordFormAuthenticationListener.php @@ -70,8 +70,8 @@ class UsernamePasswordFormAuthenticationListener extends AbstractAuthenticationL } } - $username = trim($request->get($this->options['username_parameter'])); - $password = $request->get($this->options['password_parameter']); + $username = trim($request->get($this->options['username_parameter'], null, true)); + $password = $request->get($this->options['password_parameter'], null, true); $request->getSession()->set(SecurityContextInterface::LAST_USERNAME, $username); |