From 4484748bdf33d2bca951418a247bdb6fea9f8b77 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 28 Oct 2024 17:05:02 +0100 Subject: avoid replacing away the quotes --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index eba5aa6..e6e67d9 100644 --- a/it.class +++ b/it.class @@ -308,7 +308,7 @@ 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)(\' => |\] => |=)[^&\s\']*' => '$1$2********'], $body, ['utf8' => false]); $body = it::replace(['"(pw|passw|password\d*|secret|api.?key)": *"[^"]*"' => '"$1": "*******"'], $body, ['utf8' => false]); } -- cgit v1.2.3