From 34eedb503acad59d649f96d3250b40cc1c84047c Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sun, 26 Sep 2010 17:24:20 -0700 Subject: stronger type checking on comparisons --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index dca251538..898a1c37a 100644 --- a/index.php +++ b/index.php @@ -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'; -- cgit v1.2.3