Improved register_globals handling

pull/1/head
root 16 years ago
parent 27f1c122bb
commit 4982654f2c

@ -550,14 +550,14 @@
if($oldid == 11 && $process != "")
{
$who = stripslashes($who);
$who = stripslashes($_REQUEST['who']);
$email = stripslashes($_REQUEST['email']);
$subject = stripslashes($subject);
$message = stripslashes($message);
$subject = stripslashes($_REQUEST['subject']);
$message = stripslashes($_REQUEST['message']);
$secrethash = $_REQUEST['secrethash2'];
if($_SESSION['_config']['secrethash'] != $secrethash || $secrethash == "" || $_SESSION['_config']['secrethash'] == "" ||
strstr($subject, "botmetka") || strstr($subject, "servermetka"))
strstr($subject, "botmetka") || strstr($subject, "servermetka") || strstr($who,"\n") || strstr($email,"\n") || strstr($subject,"\n") )
{
$id = $oldid;
$process = "";

Loading…
Cancel
Save