From: Florian Pritz Date: Thu, 22 Sep 2011 19:43:30 +0000 (+0200) Subject: don't escape new lines in vevent description X-Git-Tag: v3.0~161^2~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=761ba4a379fd44933eaf7357133c850322a0591c;p=nextcloud-server.git don't escape new lines in vevent description This ended up as "\n\\n" in the data base and the escaped \n was also visible in the edit form. Signed-off-by: Florian Pritz --- diff --git a/apps/calendar/lib/object.php b/apps/calendar/lib/object.php index c4878dac651..98e17ac81b6 100644 --- a/apps/calendar/lib/object.php +++ b/apps/calendar/lib/object.php @@ -488,8 +488,7 @@ class OC_Calendar_Object{ } if($description != ""){ - $des = str_replace("\n","\\n", $description); - $vevent->DESCRIPTION = $des; + $vevent->DESCRIPTION = $description; }else{ unset($vevent->DESCRIPTION); }