summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2024-10-28 17:05:02 +0100
committerUrban Müller2024-10-28 17:05:02 +0100
commit4484748bdf33d2bca951418a247bdb6fea9f8b77 (patch)
tree0da1d36fec4666a102f42fd15d7e84e25da4ee4d
parentd90278aff8305ed7b44c837d301f216bc468b298 (diff)
downloaditools-4484748bdf33d2bca951418a247bdb6fea9f8b77.tar.gz
itools-4484748bdf33d2bca951418a247bdb6fea9f8b77.tar.bz2
itools-4484748bdf33d2bca951418a247bdb6fea9f8b77.zip
avoid replacing away the quotes
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
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]);
}