aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2005-09-13 21:57:28 +0000
committerChad Little <clittle@users.sourceforge.net>2005-09-13 21:57:28 +0000
commitad11be7850fff3f34abf75184ca939ac066ed342 (patch)
treef511bd30d498016d8bf2618ed870faee9ef48bbb /includes
parent49eed0dc15e03bd562194606b0fdb59b2b584296 (diff)
downloadphpicalendar-ad11be7850fff3f34abf75184ca939ac066ed342.tar.gz
phpicalendar-ad11be7850fff3f34abf75184ca939ac066ed342.tar.bz2
phpicalendar-ad11be7850fff3f34abf75184ca939ac066ed342.zip
Minor cosmetics.
Diffstat (limited to 'includes')
-rw-r--r--includes/event.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/includes/event.php b/includes/event.php
index 620f22b..c770c9f 100644
--- a/includes/event.php
+++ b/includes/event.php
@@ -25,7 +25,8 @@ if ($_POST['time'] == -1) {
$event_times = date($timeFormat, $event['start_unixtime']) . ' - ' . date($timeFormat, $event['end_unixtime']);
}
-$event['description'] = urldecode($event['description']);
+$event['description'] = urldecode(stripslashes($event['description']));
+$event['event_text'] = urldecode(stripslashes($event['event_text']));
if ($event['description']) $event['description'] = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'<a target="_new" href="\0">\0</a>',$event['description']);
@@ -65,9 +66,9 @@ $page = new Page(BASE.'templates/'.$template.'/event.tpl');
$page->replace_tags(array(
'charset' => $charset,
'cal' => $event['calname'],
- 'event_text' => urldecode($event['event_text']),
+ 'event_text' => $event['event_text'],
'event_times' => $event_times,
- 'description' => urldecode($event['description']),
+ 'description' => $event['description'],
'organizer' => $organizer,
'attendee' => $attendee,
'status' => $event['status'],

© 2014-2022 Faster IT GmbH | imprint | privacy policy