Skip to content

Commit

Permalink
[Security] use deep flag when retrieving username + password
Browse files Browse the repository at this point in the history
  • Loading branch information
schmittjoh committed May 10, 2011
1 parent 411659b commit 9408ab3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -246,7 +246,7 @@ private function determineTargetUrl(Request $request)
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;
}

Expand Down
Expand Up @@ -70,8 +70,8 @@ protected function attemptAuthentication(Request $request)
}
}

$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);

Expand Down

0 comments on commit 9408ab3

Please sign in to comment.