aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2007-02-16 06:25:42 +0000
committerJim Hu <jimhu@users.sourceforge.net>2007-02-16 06:25:42 +0000
commit9ad3203bf87da355f14ce1f10815b50386308dee (patch)
tree3af53d8272ce69e1e91953eb85ba2df5ff3a1941 /includes
parent2e26a1297de73ef09a87f9e4e97ed2090a448275 (diff)
downloadphpicalendar-9ad3203bf87da355f14ce1f10815b50386308dee.tar.gz
phpicalendar-9ad3203bf87da355f14ce1f10815b50386308dee.tar.bz2
phpicalendar-9ad3203bf87da355f14ce1f10815b50386308dee.zip
fixes for 1634128 and allow passing event data via request instead of just post
Diffstat (limited to 'includes')
-rw-r--r--includes/event.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/includes/event.php b/includes/event.php
index ee7870a..4a2c9a4 100644
--- a/includes/event.php
+++ b/includes/event.php
@@ -11,10 +11,8 @@ function decode_popup ($item) {
return $item;
}
-
-
#$event = $master_array[$_POST['date']][$_POST['time']][decode_popup($_POST['uid'])];
-$event = unserialize(stripslashes($_POST['event_data']));
+$event = unserialize(stripslashes($_REQUEST['event_data']));
$organizer = unserialize($event['organizer']);
$attendee = unserialize($event['attendee']);
@@ -26,8 +24,9 @@ if ($_POST['time'] == -1) {
$event_times = date($timeFormat, $event['start_unixtime']) . ' - ' . date($timeFormat, $event['end_unixtime']);
}
-$event['description'] = stripslashes(urldecode($event['description']));
-$event['event_text'] = stripslashes(urldecode($event['event_text']));
+$event['description'] = stripslashes(utf8_decode(urldecode($event['description'])));
+$event['event_text'] = stripslashes(utf8_decode(urldecode($event['event_text'])));
+$event['location'] = stripslashes(utf8_decode(urldecode($event['location'])));
if ($event['description']) $event['description'] = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'<a target="_new" href="\0">\0</a>',$event['description']);

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