]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't escape new lines in vevent description
authorFlorian Pritz <bluewind@xinu.at>
Thu, 22 Sep 2011 19:43:30 +0000 (21:43 +0200)
committerFlorian Pritz <bluewind@xinu.at>
Sat, 24 Sep 2011 16:41:50 +0000 (18:41 +0200)
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 <bluewind@xinu.at>
apps/calendar/lib/object.php

index c4878dac651f972b4bed35f303254cdb4f4e9d4c..98e17ac81b62039ca0fab627f30f539682793dd3 100644 (file)
@@ -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);
                }