From 0d83cde16cfb6c280883762f3d8e853e7aa15124 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 20 Apr 2021 16:48:30 +0200 Subject: handle invalid utf8 in body --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it.class b/it.class index bdd9cfb..f384dd2 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' => it::replace(['\x00' => "[NULLBYTE]"], $body), + 'Body' => it::replace(['\x00' => "[NULLBYTE]"], $body, ['utf8' => false]), 'forcemail' => !it::is_devel(), ]); $p['title'] = "Mail: " . $p['title']; -- cgit v1.2.3