aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-28 20:13:01 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-28 20:13:01 +0000
commit217454e76e29f9161e2cd49181b67097341755c2 (patch)
treec240583848611a1696ef7992e82a3c413ec89cce /includes
parentd482264b6af8598ce50677ac6a8f781e219b7d6f (diff)
downloadphpicalendar-217454e76e29f9161e2cd49181b67097341755c2.zip
phpicalendar-217454e76e29f9161e2cd49181b67097341755c2.tar.gz
phpicalendar-217454e76e29f9161e2cd49181b67097341755c2.tar.bz2
remove admin.tpl from alternative template folders
Diffstat (limited to 'includes')
-rw-r--r--includes/event.php10
1 files changed, 5 insertions, 5 deletions
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:]/]",'<a target="_new" href="\0">\0</a>',$event['description']);
+if (isset($event['description'])) $event['description'] = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'<a target="_new" href="\0">\0</a>',$event['description']);
if (isset($organizer) && is_array($organizer)) {
$i=0;

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