stronger type checking on comparisons
This commit is contained in:
@@ -53,7 +53,7 @@ if($a->module_loaded) {
|
||||
$func($a);
|
||||
}
|
||||
|
||||
if(($_SERVER['REQUEST_METHOD'] == 'POST') && (! $a->error)
|
||||
if(($_SERVER['REQUEST_METHOD'] === 'POST') && (! $a->error)
|
||||
&& (function_exists($a->module . '_post'))
|
||||
&& (! x($_POST,'auth-params'))) {
|
||||
$func = $a->module . '_post';
|
||||
|
||||
Reference in New Issue
Block a user