From: <ji...@us...> - 2006-02-23 22:41:07
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29563/phpicalendar/functions Modified Files: init.inc.php Log Message: accept action from request instead of just from get Index: init.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init.inc.php,v retrieving revision 1.84 retrieving revision 1.85 diff -C2 -d -r1.84 -r1.85 *** init.inc.php 15 Feb 2006 15:41:24 -0000 1.84 --- init.inc.php 23 Feb 2006 22:40:56 -0000 1.85 *************** *** 30,34 **** $calendar_path = BASE.'calendars'; } ! if($_REQUEST['cpath']){ $cpath = str_replace('..','',$_REQUEST['cpath']); --- 30,34 ---- $calendar_path = BASE.'calendars'; } ! $cpath = ''; #initialize cpath to prevent later undef warnings. if($_REQUEST['cpath']){ $cpath = str_replace('..','',$_REQUEST['cpath']); *************** *** 58,62 **** // Grab the action (login or logout). $action = ''; ! if (isset($_REQUEST['action'])) $action = $_GET['action']; // Login and/or logout. --- 58,62 ---- // Grab the action (login or logout). $action = ''; ! if (isset($_REQUEST['action'])) $action = $_REQUEST['action']; // Login and/or logout. |