Skip to content

Commit

Permalink
Fix: Avoid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 8, 2011
1 parent 42343a1 commit f142d4f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions htdocs/main.inc.php
Expand Up @@ -106,11 +106,17 @@ function analyse_sql_and_script(&$var,$get)
}
}
// Sanity check on URL
$morevaltochecklikepost=array($_SERVER["PHP_SELF"]);
analyse_sql_and_script($morevaltochecklikepost,0);
if (! empty($_SERVER["PHP_SELF"]))
{
$morevaltochecklikepost=array($_SERVER["PHP_SELF"]);
analyse_sql_and_script($morevaltochecklikepost,0);
}
// Sanity check on GET parameters
$morevaltochecklikeget=array($_SERVER["QUERY_STRING"]);
analyse_sql_and_script($morevaltochecklikeget,1);
if (! empty($_SERVER["QUERY_STRING"]))
{
$morevaltochecklikeget=array($_SERVER["QUERY_STRING"]);
analyse_sql_and_script($morevaltochecklikeget,1);
}
// Sanity check on POST
analyse_sql_and_script($_POST,0);

Expand Down

0 comments on commit f142d4f

Please sign in to comment.