From 986082d6f32c0a860e2aa9364aaf01d110e1b909 Mon Sep 17 00:00:00 2001 From: jbousquie Date: Mon, 21 Nov 2016 09:34:21 +0100 Subject: [PATCH] fix strcmp() --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index cf943a1..32e819e 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ include_once('winlogconf.php'); include_once('admin/db_access.php'); // ne traiter que sur des requĂȘtes POST sur le port 443 -if ( $_SERVER["REQUEST_METHOD"] == "POST" && $_SERVER["SERVER_PORT"] == "443" && strcmp(addslashes($_POST["code"]), addslashes($server_code)) ) { +if ( $_SERVER["REQUEST_METHOD"] == "POST" && $_SERVER["SERVER_PORT"] == "443" && strcmp(addslashes($_POST["code"]), addslashes($server_code)) == 0 ) { $db = db_connect();