8000 minor #12981 [HttpKernel] Mask '_password' request in profiler (goabo… · symfony/symfony@354593f · GitHub
[go: up one dir, main page]

Skip to content

Commit 354593f

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 53c8bae + 1224fc6 commit 354593f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/HttpKernel/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)
0