Commit 8a06f43c authored by Andreas Brodowski's avatar Andreas Brodowski

ZP-1230 windows-phone-8.1-unable-to-sync. Released under the Affero GNU...

ZP-1230 windows-phone-8.1-unable-to-sync. Released under the Affero GNU General Public License (AGPL) version 3.

Removed the UTF-8 MAPI CR/LF replace part as suggested by Sebastian.
parent 368e78ff
......@@ -2473,8 +2473,7 @@ class MAPIProvider {
elseif (isset($message->internetcpid) && $bpReturnType == SYNC_BODYPREFERENCE_HTML) {
// if PR_HTML is UTF-8 we can stream it directly, else we have to convert to UTF-8 & wrap it
if (Utils::GetCodepageCharset($message->internetcpid) == "utf-8") {
$body = $this->mapiReadStream($stream, $streamsize);
$message->asbody->data = StringStreamWrapper::Open(str_replace("\n","",str_replace("\r","",$body)));
$message->asbody->data = MAPIStreamWrapper::Open($stream);
}
else {
$body = $this->mapiReadStream($stream, $streamsize);
......
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