mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-27 18:06:06 +00:00
Hide authorization headers in logging.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
parent
4e12eb82e4
commit
4380fb12c9
@ -146,6 +146,9 @@ class CalDAVRequest
|
||||
dbg_error_log( "LOG ", "***************** Request Header ****************" );
|
||||
dbg_error_log( "LOG ", "%s %s", $_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI'] );
|
||||
foreach( $lines AS $k => $v ) {
|
||||
if ( $k == 'Authorization' )
|
||||
dbg_error_log( "LOG headers", "-->%s: %s", $k, 'Delicious tasty password eaten by debugging monster!' );
|
||||
else
|
||||
dbg_error_log( "LOG headers", "-->%s: %s", $k, $v );
|
||||
}
|
||||
dbg_error_log( "LOG ", "******************** Request ********************" );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user