Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-09-22 23:43:30 +0400
committerFlorian Pritz <bluewind@xinu.at>2011-09-24 20:41:50 +0400
commit761ba4a379fd44933eaf7357133c850322a0591c (patch)
tree72aa73e9ef15215a801b2bbb951858f23ed45887 /apps/calendar
parent652b74420130e94739ea860f77182f72800c8e55 (diff)
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')
-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);
}