summaryrefslogtreecommitdiffstats
path: root/apps/calendar/lib
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-09-22 21:43:30 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-09-24 18:41:50 +0200
commit761ba4a379fd44933eaf7357133c850322a0591c (patch)
tree72aa73e9ef15215a801b2bbb951858f23ed45887 /apps/calendar/lib
parent652b74420130e94739ea860f77182f72800c8e55 (diff)
downloadnextcloud-server-761ba4a379fd44933eaf7357133c850322a0591c.tar.gz
nextcloud-server-761ba4a379fd44933eaf7357133c850322a0591c.zip
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 <bluewind@xinu.at>
Diffstat (limited to 'apps/calendar/lib')
-rw-r--r--apps/calendar/lib/object.php3
1 files changed, 1 insertions, 2 deletions
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);
}