diff options
author | Urban Müller | 2024-10-28 17:05:02 +0100 |
---|---|---|
committer | Urban Müller | 2024-10-28 17:05:02 +0100 |
commit | 4484748bdf33d2bca951418a247bdb6fea9f8b77 (patch) | |
tree | 0da1d36fec4666a102f42fd15d7e84e25da4ee4d | |
parent | d90278aff8305ed7b44c837d301f216bc468b298 (diff) | |
download | itools-4484748bdf33d2bca951418a247bdb6fea9f8b77.tar.gz itools-4484748bdf33d2bca951418a247bdb6fea9f8b77.tar.bz2 itools-4484748bdf33d2bca951418a247bdb6fea9f8b77.zip |
avoid replacing away the quotes
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]); } |