aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2005-11-11 01:30:11 +0000
committerJim Hu <jimhu@users.sourceforge.net>2005-11-11 01:30:11 +0000
commit47f63abfe8799c010902fbfb685794389393c5ee (patch)
treeedccc965fa8c849fb08fb7095917484dc6aa1ddd /includes
parente011a492eaf2d6595e7454aa11ba5b9a55745d04 (diff)
downloadphpicalendar-47f63abfe8799c010902fbfb685794389393c5ee.zip
phpicalendar-47f63abfe8799c010902fbfb685794389393c5ee.tar.gz
phpicalendar-47f63abfe8799c010902fbfb685794389393c5ee.tar.bz2
stripslashes in event.php
Diffstat (limited to 'includes')
-rw-r--r--includes/event.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/event.php b/includes/event.php
index c770c9f..9ae0a93 100644
--- a/includes/event.php
+++ b/includes/event.php
@@ -25,8 +25,8 @@ if ($_POST['time'] == -1) {
$event_times = date($timeFormat, $event['start_unixtime']) . ' - ' . date($timeFormat, $event['end_unixtime']);
}
-$event['description'] = urldecode(stripslashes($event['description']));
-$event['event_text'] = urldecode(stripslashes($event['event_text']));
+$event['description'] = stripslashes(urldecode($event['description']));
+$event['event_text'] = stripslashes(urldecode($event['event_text']));
if ($event['description']) $event['description'] = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'<a target="_new" href="\0">\0</a>',$event['description']);
@@ -72,7 +72,7 @@ $page->replace_tags(array(
'organizer' => $organizer,
'attendee' => $attendee,
'status' => $event['status'],
- 'location' => $event['location'],
+ 'location' => stripslashes($event['location']),
'cal_title_full' => $event['calname'].' '.$lang['l_calendar'],
'template' => $template,
'l_organizer' => $lang['l_organizer'],

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