From 62665ee2fafc1ca287e52f397eb6e0c2887cbdab Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 20 Apr 2021 13:46:48 +0200 Subject: it::mail refuses to send mails with null bytes --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index 5b83317..bdd9cfb 100644 --- a/it.class +++ b/it.class @@ -309,7 +309,7 @@ static function error($p = array(), $extra = null) 'Reply-To' => $p['to'], 'Cc' => $GLOBALS['it_defaultconfig']['error_cc'], 'Subject' => $type . substr($p['title'], 0, 160), - 'Body' => $body, + 'Body' => it::replace(['\x00' => "[NULLBYTE]"], $body), 'forcemail' => !it::is_devel(), ]); $p['title'] = "Mail: " . $p['title']; -- cgit v1.2.3