From 99cfde6479207ba9349d8c4a093ef14a1026154d Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Sat, 13 Dec 2008 23:42:30 +0000 Subject: debug rrules; fix cookie injection vuln --- functions/parse/parse_tzs.php | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'functions/parse/parse_tzs.php') diff --git a/functions/parse/parse_tzs.php b/functions/parse/parse_tzs.php index 85ab929..93f24d5 100644 --- a/functions/parse/parse_tzs.php +++ b/functions/parse/parse_tzs.php @@ -1,7 +1,7 @@ $tz_id"; print_r($tz_array[$tz_id]);echo""; + $tz_array[$tz_id] = array( + 0 => $offset_s, + 1 => $offset_d, + 'dt_start' => $begin_daylight, + 'st_start' => $begin_std, + 'st_name' => $st_name, + 'dt_name' => $dt_name + + ); #echo "
$tz_id"; print_r($tz_array[$tz_id]);echo"
"; break; default: unset ( $data, $prop_pos, $property); @@ -56,6 +68,14 @@ while (!feof($ifile)) { case 'TZOFFSETTO': $offset_to = $data; break; + case 'DTSTART': + if($is_std) $begin_std = $data; + if($is_daylight) $begin_daylight = $data; + break; + case 'TZNAME': + if($is_std) $st_name = $data; + if($is_daylight) $dt_name = $data; + break; } } } -- cgit v1.2.3