Keep formatting of external event description.
authorJan Schneider <jan@horde.org>
Wed, 18 Nov 2009 23:45:58 +0000 (00:45 +0100)
committerJan Schneider <jan@horde.org>
Wed, 18 Nov 2009 23:47:10 +0000 (00:47 +0100)
kronolith/lib/Event.php

index 29743a7..6b2e1be 100644 (file)
@@ -2353,7 +2353,7 @@ abstract class Kronolith_Event
         $link = '';
         if (isset($this->external) && !empty($this->external_link)) {
             $link = $this->external_link;
-            $link = Horde::linkTooltip(Horde::url($link), '', 'event-tentative', '', '', Horde_String::wrap($this->description));
+            $link = Horde::linkTooltip(Horde::url($link), '', 'event-tentative', '', '', nl2br(htmlspecialchars(Horde_String::wrap($this->description))));
         } elseif (isset($this->eventID) && $read_permission) {
             $link = Horde::linkTooltip($view_url,
                                        $event_title,