fix strcmp()

This commit is contained in:
jbousquie 2016-11-21 09:34:21 +01:00
parent befc9a573a
commit 986082d6f3

View File

@ -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();