From ae115564170d880e36df22df8363320c46037a66 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 28 Oct 2020 10:38:07 +0100 Subject: [PATCH] Continued: - should be "AND" MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- libs/lib_connect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/lib_connect.php b/libs/lib_connect.php index 2a6a366..a95c255 100644 --- a/libs/lib_connect.php +++ b/libs/lib_connect.php @@ -126,7 +126,7 @@ function crackerTrackerInsertArray ($table, array $rowData) { // Updates a given entry by just counting it up function updateCrackerTrackerEntry (array $rowData, $countColumn = 'count') { // Construct the SELECT query - $sqlString = 'UPDATE `ctracker_data` SET `' . $countColumn . '`=`' . $countColumn . '`+1 WHERE (`remote_addr`="' . crackerTrackerEscapeString($rowData['remote_addr']) . '" OR `proxy_addr`="' . crackerTrackerEscapeString($rowData['proxy_addr']) . '") LIMIT 1'; + $sqlString = 'UPDATE `ctracker_data` SET `' . $countColumn . '`=`' . $countColumn . '`+1 WHERE (`remote_addr`="' . crackerTrackerEscapeString($rowData['remote_addr']) . '" AND `proxy_addr`="' . crackerTrackerEscapeString($rowData['proxy_addr']) . '") LIMIT 1'; // Run the SQL and check if we have one line runCrackerTrackerSql($sqlString, __FUNCTION__, __LINE__); -- 2.39.5