diff options
author | Urban Müller | 2024-04-22 17:32:00 +0200 |
---|---|---|
committer | Urban Müller | 2024-04-22 17:32:00 +0200 |
commit | 813faa732349886b6adae00c44eb436e16809689 (patch) | |
tree | 728b484001c43cef0ab39d4e30ba09ac7ad50353 | |
parent | 162b30a5d73fe21a90544860d84c0b9ca2400f1c (diff) | |
download | itools-813faa732349886b6adae00c44eb436e16809689.tar.gz itools-813faa732349886b6adae00c44eb436e16809689.tar.bz2 itools-813faa732349886b6adae00c44eb436e16809689.zip |
keep quotes around key
-rw-r--r-- | it.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -287,7 +287,7 @@ static function error($p = array(), $extra = null) if ($sendmail || EDC('verboseerrors')) # we're mailing: send maximum info { - $p['title'] = it::replace(['alert:|server:|^: "' => "", '"(pw|passw|password\d*|secret)": *"[^"]*"' => '$1: "*******"'], "$service: " . $p['title']) . " (via " . getenv('HOSTNAME') . ")"; + $p['title'] = it::replace(['alert:|server:|^: "' => "", '"(pw|passw|password\d*|secret)": *"[^"]*"' => '"$1": "*******"'], "$service: " . $p['title']) . " (via " . getenv('HOSTNAME') . ")"; if (!$p['omitdebuginfo']) { @@ -307,7 +307,7 @@ static function error($p = array(), $extra = null) $body .= $_FILES ? "\$_FILES: " . it::json_encode($_FILES, ['pretty' => true]) . "\n" : ""; $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)": *"[^"]*"' => '$1: "*******"'], $body, array('utf8' => false)); + $body = it::replace(['"(pw|passw|password\d*|secret)": *"[^"]*"' => '"$1": "*******"'], $body, array('utf8' => false)); } $type = ($p['fatal'] ? (it::is_live() ? "FATAL: " : "Fatal: ") : "Error: "); |