From 217454e76e29f9161e2cd49181b67097341755c2 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Sun, 28 Dec 2008 20:13:01 +0000 Subject: remove admin.tpl from alternative template folders --- includes/event.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'includes') diff --git a/includes/event.php b/includes/event.php index a198469..8d57ae9 100644 --- a/includes/event.php +++ b/includes/event.php @@ -7,7 +7,7 @@ require_once(BASE.'functions/template.php'); # information for the popup is sent via $_POST by a javascript snippet in # in function openevent() from functions/date_functions.php # character encoding has been problematic with popups. -$event = unserialize($_POST['event_data']); +$event = unserialize(stripslashes($_POST['event_data'])); $organizer = unserialize($event['organizer']); $attendee = unserialize($event['attendee']); @@ -19,11 +19,11 @@ if ($_POST['time'] == -1) { $event_times = date($timeFormat, $event['start_unixtime']) . ' - ' . date($timeFormat, $event['end_unixtime']); } -$event['event_text'] = stripslashes(urldecode($event['event_text'])); -$event['description'] = stripslashes(urldecode($event['description'])); -$event['location'] = stripslashes(urldecode($event['location'])); +$event['event_text'] = urldecode($event['event_text']); +$event['description'] = urldecode($event['description']); +$event['location'] = urldecode($event['location']); $display =''; -if ($event['description']) $event['description'] = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'\0',$event['description']); +if (isset($event['description'])) $event['description'] = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'\0',$event['description']); if (isset($organizer) && is_array($organizer)) { $i=0; -- cgit v1.2.3