summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2021-04-20 13:46:48 +0200
committerUrban Müller2021-04-20 13:47:12 +0200
commit62665ee2fafc1ca287e52f397eb6e0c2887cbdab (patch)
tree03f79c5ccfb27374c817b5e16da46633bb803872 /it.class
parent9bdb3cb5c665eab02b6e14345aeb4e69a20596c7 (diff)
downloaditools-62665ee2fafc1ca287e52f397eb6e0c2887cbdab.tar.gz
itools-62665ee2fafc1ca287e52f397eb6e0c2887cbdab.tar.bz2
itools-62665ee2fafc1ca287e52f397eb6e0c2887cbdab.zip
it::mail refuses to send mails with null bytes
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
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'];