Skip to content

Commit 50221bd

Browse files
committed
minor #12981 [HttpKernel] Mask '_password' request in profiler (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
2 parents afed1c8 + f6cb1d0 commit 50221bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DataCollector/RequestDataCollector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ public function collect(Request $request, Response $response, \Exception $except
117117
$this->data['request_server']['PHP_AUTH_PW'] = '******';
118118
}
119119

120+
if (isset($this->data['request_request']['_password'])) {
121+
$this->data['request_request']['_password'] = '******';
122+
}
123+
120124
if (isset($this->controllers[$request])) {
121125
$controller = $this->controllers[$request];
122126
if (is_array($controller)) {

0 commit comments

Comments
 (0)