Commit 77b78652 authored by Etienne CHAMPETIER's avatar Etienne CHAMPETIER

ZP-796 Replace ftruncate with Utf8_stream_ftruncate.

Released under the Affero GNU General Public License (AGPL) version 3.
Signed-off-by: 's avatarEtienne CHAMPETIER <champetier.etienne@gmail.com>
parent 66f418d9
......@@ -2484,7 +2484,7 @@ class MAPIProvider {
$message->asbody->estimatedDataSize > $bpo->GetTruncationSize()
) {
// truncate data stream
ftruncate($message->asbody->data, $bpo->GetTruncationSize());
$message->asbody->data = Utils::Utf8_stream_ftruncate($message->asbody->data, $bpo->GetTruncationSize());
$message->asbody->truncated = 1;
}
// set the preview or windows phones won't show the preview of an email
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment