Skip to content

Commit

Permalink
minor symfony#12981 [HttpKernel] Mask '_password' request in profiler…
Browse files Browse the repository at this point in the history
… (goabonga)

This PR was merged into the 2.7 branch.

Discussion
----------

[HttpKernel] Mask '_password' request in profiler

Just mask the request _password value in profiler log view.

Commits
-------

1224fc6 [HttpKernel] Mask '_password' request in profiler
  • Loading branch information
fabpot committed Feb 5, 2015
2 parents 53c8bae + 1224fc6 commit 354593f
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -117,6 +117,10 @@ public function collect(Request $request, Response $response, \Exception $except
$this->data['request_server']['PHP_AUTH_PW'] = '******';
}

if (isset($this->data['request_request']['_password'])) {
$this->data['request_request']['_password'] = '******';
}

if (isset($this->controllers[$request])) {
$controller = $this->controllers[$request];
if (is_array($controller)) {
Expand Down

0 comments on commit 354593f

Please sign in to comment.