diff options
author | Urban Müller | 2021-04-20 13:46:48 +0200 |
---|---|---|
committer | Urban Müller | 2021-04-20 13:47:12 +0200 |
commit | 62665ee2fafc1ca287e52f397eb6e0c2887cbdab (patch) | |
tree | 03f79c5ccfb27374c817b5e16da46633bb803872 | |
parent | 9bdb3cb5c665eab02b6e14345aeb4e69a20596c7 (diff) | |
download | itools-62665ee2fafc1ca287e52f397eb6e0c2887cbdab.tar.gz itools-62665ee2fafc1ca287e52f397eb6e0c2887cbdab.tar.bz2 itools-62665ee2fafc1ca287e52f397eb6e0c2887cbdab.zip |
it::mail refuses to send mails with null bytes
-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' => $body, + 'Body' => it::replace(['\x00' => "[NULLBYTE]"], $body), 'forcemail' => !it::is_devel(), ]); $p['title'] = "Mail: " . $p['title']; |