Skip to content

Commit

Permalink
FIX: Convert $_POST['token'] and $_GET['token'] to $token for registe…
Browse files Browse the repository at this point in the history
…r_globals=off (line 77-)

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@437 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jul 2, 2003
1 parent d9e938f commit 7bce52b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.php
Expand Up @@ -74,6 +74,14 @@

//GET BASIC INFORMATION ABOUT THIS SURVEY
$sid=$_GET['sid']; if (!$sid) {$sid=$_POST['sid'];}
if (!$token)
{
$token=$_GET['token'];
if (!$token)
{
$token=$_POST['token'];
}
}
$query="SELECT * FROM surveys WHERE sid=$sid";
$result=mysql_query($query) or die ("Couldn't access surveys<br />$query<br />".mysql_error());
$surveyexists=mysql_num_rows($result);
Expand Down

0 comments on commit 7bce52b

Please sign in to comment.