Improved register_globals

This commit is contained in:
root 2008-09-19 21:54:52 +00:00
parent 25c01c726f
commit 24e4b974c6

View file

@ -22,7 +22,7 @@
mysql_query("delete from `notary` where `id`='$assurance'"); mysql_query("delete from `notary` where `id`='$assurance'");
} }
if(intval($_REQUEST['userid']) <= 0) if(intval(array_key_exists('userid',$_REQUEST)?$_REQUEST['userid']:0) <= 0)
{ {
$emailsearch = $email = mysql_escape_string(stripslashes($_REQUEST['email'])); $emailsearch = $email = mysql_escape_string(stripslashes($_REQUEST['email']));
if(!strstr($email, "%")) if(!strstr($email, "%"))