From 65ece612734ec4fd88d08daeed5c86bd06fbd598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Juli=C3=A1n?= Date: Thu, 12 Jun 2014 15:46:02 +0200 Subject: [PATCH] Removing some trail characters at event description * They are sometimes present after a \r\n\n --- OpenChange/MAPIStoreAppointmentWrapper.m | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/OpenChange/MAPIStoreAppointmentWrapper.m b/OpenChange/MAPIStoreAppointmentWrapper.m index 24c6e1ad3..c07998c5e 100644 --- a/OpenChange/MAPIStoreAppointmentWrapper.m +++ b/OpenChange/MAPIStoreAppointmentWrapper.m @@ -1214,6 +1214,20 @@ static NSCharacterSet *hexCharacterSet = nil; return MAPISTORE_SUCCESS; } +/* +private static function parseDescriptionOc2Rc($description) +{ + $description = ltrim($description, ')'); + + if (strpos($description, "\r\n\n") !== false) { + $exploded = explode("\r\n\n", $description, -1); + $description = join($exploded, "\n"); + } + + return $description; +} +*/ + - (int) getPidTagBody: (void **) data inMemCtx: (TALLOC_CTX *) memCtx {