summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2021-04-20 16:48:30 +0200
committerUrban Müller2021-04-20 16:48:30 +0200
commit0d83cde16cfb6c280883762f3d8e853e7aa15124 (patch)
tree86ae345f1ba2bca59809e97062622d45adb1e879
parent62665ee2fafc1ca287e52f397eb6e0c2887cbdab (diff)
downloaditools-0d83cde16cfb6c280883762f3d8e853e7aa15124.tar.gz
itools-0d83cde16cfb6c280883762f3d8e853e7aa15124.tar.bz2
itools-0d83cde16cfb6c280883762f3d8e853e7aa15124.zip
handle invalid utf8 in body
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
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'];