diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-08-21 08:04:24 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-08-21 08:04:24 +0000 |
| commit | 875eb77eaa9a6eb2f5ddce6760e577a7f4540583 (patch) | |
| tree | 7422719a98f45fedc0692986af89c4f4051a8d4a /index.php | |
| parent | 2dd6176a1d90da09e8711303c52b999ce0535b42 (diff) | |
| download | calendar-875eb77eaa9a6eb2f5ddce6760e577a7f4540583.tar.gz calendar-875eb77eaa9a6eb2f5ddce6760e577a7f4540583.tar.bz2 calendar-875eb77eaa9a6eb2f5ddce6760e577a7f4540583.zip | |
clean up todate in $_REQUEST
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,6 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_calendar/index.php,v 1.21 2005/08/21 01:14:21 squareing Exp $ +// $Header: /cvsroot/bitweaver/_bit_calendar/index.php,v 1.22 2005/08/21 08:04:24 squareing Exp $ // Copyright( c ) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // All Rights Reserved. See copyright.txt for details and a complete list of authors. @@ -30,7 +30,8 @@ foreach( $gLibertySystem->mContentTypes as $cType ) { $gBitSmarty->assign( 'contentTypes', $contentTypes ); if( !empty( $_REQUEST["todate"] ) ) { - $_SESSION['calendar']['focus_date'] = $_REQUEST['todate']; + // clean up todate. who knows where this has come from + $_SESSION['calendar']['focus_date'] = mktime( 0, 0, 0, date( 'm', $_REQUEST['todate'] ), date( 'd', $_REQUEST['todate'] ), date( 'Y', $_REQUEST['todate'] ) ); } elseif( !empty( $_SESSION['calendar']['focus_date'] ) ) { $_REQUEST["todate"] = $_SESSION['calendar']['focus_date']; } else { |
