summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2025-01-16 18:22:37 +0100
committerUrban Müller2025-01-16 18:22:37 +0100
commit4b82583c4421dfb4aa3b2d9dd622530ed97ae50f (patch)
tree4e84a9124851d7ab7be178c16c8dfcbb194652ba
parentc52f3119e215f91aa8d6b58170a82ea16d7f0293 (diff)
downloaditools-4b82583c4421dfb4aa3b2d9dd622530ed97ae50f.tar.gz
itools-4b82583c4421dfb4aa3b2d9dd622530ed97ae50f.tar.bz2
itools-4b82583c4421dfb4aa3b2d9dd622530ed97ae50f.zip
fix some missed censorship, also censort x-auth-tokenHEADmaster
-rw-r--r--it.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it.class b/it.class
index cbb5486..03fba2d 100644
--- a/it.class
+++ b/it.class
@@ -308,8 +308,8 @@ static function error($p = array(), $extra = null)
$body .= "Processes:\n" . it::exec('ps auxf | egrep -v "rotatelogs|getbanner|logaction|httpd|systemd|sd-pam"|egrep "^www|^cron"') . "\n";
$body .= $longstack ? "Full stack: " . "$longstack\n" : "";
- $body = it::replace(['(pw|passw|password\d*|secret|api.?key)(\' => |\] => |=)[^&\s\']*' => '$1$2********'], $body, ['utf8' => false]);
- $body = it::replace(['"(pw|passw|password\d*|secret|api.?key)": *"[^"]*"' => '"$1": "*******"'], $body, ['utf8' => false]);
+ $body = it::replace(['(pw|passw|password\d*|secret|api.?key|X-Auth-Token)(\' => |\] => |=)\'?[^&\s\']*' => '$1$2********'], $body, ['utf8' => false]);
+ $body = it::replace(['"(pw|passw|password\d*|secret|api.?key|X-Auth-Token)": *"[^"]*"' => '"$1": "*******"'], $body, ['utf8' => false]);
}
$type = ($p['fatal'] ? (it::is_live() ? "FATAL: " : "Fatal: ") : "Error: ");