diff options
author | Urban Müller | 2021-04-20 16:48:30 +0200 |
---|---|---|
committer | Urban Müller | 2021-04-20 16:48:30 +0200 |
commit | 0d83cde16cfb6c280883762f3d8e853e7aa15124 (patch) | |
tree | 86ae345f1ba2bca59809e97062622d45adb1e879 | |
parent | 62665ee2fafc1ca287e52f397eb6e0c2887cbdab (diff) | |
download | itools-0d83cde16cfb6c280883762f3d8e853e7aa15124.tar.gz itools-0d83cde16cfb6c280883762f3d8e853e7aa15124.tar.bz2 itools-0d83cde16cfb6c280883762f3d8e853e7aa15124.zip |
handle invalid utf8 in body
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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']; |