Skip to content

Commit

Permalink
Fixed issue #4968: Survey id is picked up from cookie
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9884 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Mar 11, 2011
1 parent 49b5813 commit ea3eeef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion common_functions.php
Expand Up @@ -1667,10 +1667,17 @@ function fixmovedquestionConditions($qid,$oldgid,$newgid) //Function rewrites th
}
}
}


/**
* This function returns GET/POST/REQUEST vars, for some vars like SID and others they are also sanitized
*
* @param mixed $stringname
*/
function returnglobal($stringname)
{
global $useWebserverAuth;
if (isset($useWebserverAuth) && $useWebserverAuth === true)
if ((isset($useWebserverAuth) && $useWebserverAuth === true) || $stringname=='sid') // don't read SID from a Cookie
{
if (isset($_GET[$stringname])) $urlParam = $_GET[$stringname];
if (isset($_POST[$stringname])) $urlParam = $_POST[$stringname];
Expand Down

0 comments on commit ea3eeef

Please sign in to comment.