aboutsummaryrefslogtreecommitdiffstats
path: root/day.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-10-22 18:30:13 +0000
committerChad Little <clittle@users.sourceforge.net>2002-10-22 18:30:13 +0000
commit4bb8ac11b86112928d013e8fae12e7542a732626 (patch)
tree21a189228c94a76a9ece11888b72895e3f9f607d /day.php
parent32bb2d7d5448554286200cf5d066af0e57221ad1 (diff)
downloadphpicalendar-4bb8ac11b86112928d013e8fae12e7542a732626.tar.gz
phpicalendar-4bb8ac11b86112928d013e8fae12e7542a732626.tar.bz2
phpicalendar-4bb8ac11b86112928d013e8fae12e7542a732626.zip
Fixed bugs in description java pop-up, also set rtrim to ereg_replace for testing.
Diffstat (limited to 'day.php')
-rw-r--r--day.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/day.php b/day.php
index d79f70c..91c1145 100644
--- a/day.php
+++ b/day.php
@@ -95,7 +95,7 @@ if (is_array($master_array[($getdate)])) {
echo '<table width="100%" border="0" cellspacing="1" cellpadding="4">'."\n";
foreach($master_array[($getdate)]['-1'] as $allday) {
$event_text = stripslashes(urldecode($allday['event_text']));
- $description = $allday['description'];
+ $description = addslashes(urlencode($allday['description']));
$event_text2 = rawurlencode(addslashes($allday['event_text']));
echo '<tr>'."\n";
@@ -178,7 +178,7 @@ if (is_array($master_array[($getdate)])) {
$event_text2 = rawurlencode(addslashes($master_array[($getdate)][$cal_time][($event_length[$i]['key'])]['event_text']));
$event_start = strtotime ($master_array[($getdate)][$cal_time][($event_length[$i]['key'])]['event_start']);
$event_end = strtotime ($master_array[($getdate)][$cal_time][($event_length[$i]['key'])]['event_end']);
- $description = rawurlencode(addslashes($master_array[($getdate)][$cal_time][($event_length[$i]['key'])]['description']));
+ $description = addslashes(urlencode($master_array[($getdate)][$cal_time][($event_length[$i]['key'])]['description']));
$event_start = date ($timeFormat, $event_start);
$event_end = date ($timeFormat, $event_end);
$calendar_name2 = rawurlencode(addslashes($calendar_name));

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