[geeklog-cvs] geeklog-1.3/public_html calendar.php,1.31,1.31.2.1
dhaun at geeklog.net
dhaun at geeklog.net
Fri Jan 23 07:39:06 EST 2004
Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory geeklog_prod:/tmp/cvs-serv2805
Modified Files:
Tag: geeklog_1_3_8_1_1
calendar.php
Log Message:
Added parameter checking
Index: calendar.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/calendar.php,v
retrieving revision 1.31
retrieving revision 1.31.2.1
diff -C2 -d -r1.31 -r1.31.2.1
*** calendar.php 2 Aug 2003 17:04:50 -0000 1.31
--- calendar.php 23 Jan 2004 12:39:04 -0000 1.31.2.1
***************
*** 290,293 ****
--- 290,297 ----
$display .= COM_siteHeader('');
+ if ($mode != 'personal') {
+ $mode = '';
+ }
+
// Set mode back to master if user refreshes screen after their session expires
if (empty($_USER['uid']) AND $mode == 'personal') {
***************
*** 304,309 ****
--- 308,333 ----
}
+ if (!empty ($msg)) {
+ if (is_numeric ($msg) && ($msg > 0)) {
+ $display .= COM_showMessage ($msg);
+ }
+ }
+
+ if (!in_array ($view, array ('month', 'week', 'day'))) {
+ $view = '';
+ }
+
// Create new calendar object
$cal = new Calendar();
+
+ if (!empty ($month) && !is_numeric ($month)) {
+ $month = '';
+ }
+ if (!empty ($week) && !is_numeric ($week)) {
+ $week = '';
+ }
+ if (!empty ($day) && !is_numeric ($day)) {
+ $day = '';
+ }
if ($view == 'week' AND (empty($month) AND empty($day) AND empty($year))) {
More information about the geeklog-cvs
mailing list