diff options
author | Urban Müller | 2022-01-05 16:33:10 +0100 |
---|---|---|
committer | Urban Müller | 2022-01-05 16:33:10 +0100 |
commit | 97b6eb73b17260490f5aaf06d98a350470dc6b39 (patch) | |
tree | 9142f775447cb49f1445ac2aedb4ef29dd15f3b4 /it.class | |
parent | b09a73067748fae3e9d668de54bd6de576146ac9 (diff) | |
download | itools-97b6eb73b17260490f5aaf06d98a350470dc6b39.tar.gz itools-97b6eb73b17260490f5aaf06d98a350470dc6b39.tar.bz2 itools-97b6eb73b17260490f5aaf06d98a350470dc6b39.zip |
carriage returns do not indicate binary
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -259,7 +259,7 @@ static function error($p = array(), $extra = null) if ($toscreen || $sendmail) { $p['body'] = is_string($p['body']) || !array_key_exists('body', $p) ? $p['body'] : var_export($p['body'], true); - if (strlen($p['body']) > 500000 || it::match('[\x00-\x08\x0B-\x1F]', $p['body']) !== null) + if (strlen($p['body']) > 500000 || it::match('[\x00-\x08\x0E-\x1F]', $p['body']) !== null) { file_put_contents($datafn = "/tmp/alertdata/error-" . substr(md5($p['body']), 0, 2), $p['body']); # NOPHPLINT $p['body'] = "Body: " . getenv('HOSTNAME') . ":$datafn"; |