From: Erin S. <ebu...@us...> - 2003-06-16 15:02:35
|
Update of /cvsroot/squirrelmail/squirrelmail/functions In directory sc8-pr-cvs1:/tmp/cvs-serv1738/stable-cvs/functions Modified Files: Tag: SM-1_4-STABLE global.php Log Message: Add test for just post/get variables (for case where session should be excluded) Index: global.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/functions/global.php,v retrieving revision 1.27.2.1 retrieving revision 1.27.2.2 diff -u -w -r1.27.2.1 -r1.27.2.2 --- global.php 23 Apr 2003 18:12:18 -0000 1.27.2.1 +++ global.php 16 Jun 2003 15:02:32 -0000 1.27.2.2 @@ -167,6 +167,7 @@ define('SQ_SESSION',3); define('SQ_COOKIE',4); define('SQ_SERVER',5); +define('SQ_FORM',6); /** * Search for the var $name in $_SESSION, $_POST, $_GET, @@ -209,7 +210,7 @@ so that if a valid value isn't specified, all three arrays will be searched. */ default: - case SQ_INORDER: + case SQ_INORDER: // check session, post, get case SQ_SESSION: if( isset($_SESSION[$name]) ) { $value = $_SESSION[$name]; @@ -217,6 +218,7 @@ } elseif ( $search == SQ_SESSION ) { break; } + case SQ_FORM: // check post, get case SQ_POST: if( isset($_POST[$name]) ) { $value = $_POST[$name]; |