From 97b6eb73b17260490f5aaf06d98a350470dc6b39 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 5 Jan 2022 16:33:10 +0100 Subject: carriage returns do not indicate binary --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index d97ce91..9c29518 100644 --- a/it.class +++ b/it.class @@ -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"; -- cgit v1.2.3