Convert all client host names to lower case when requesting api_db.php?topClients

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2018-01-07 17:49:55 +01:00
parent 1a7e10cfdf
commit f0f32e82a5

View File

@@ -94,7 +94,7 @@ if (isset($_GET['topClients']) && $auth)
{
$limit = "WHERE timestamp <= ".$_GET["until"];
}
$results = $db->query('SELECT client,count(client) FROM queries '.$limit.' GROUP by client order by count(client) desc limit 10');
$results = $db->query('SELECT LOWER(client),count(LOWER(client)) FROM queries '.$limit.' GROUP by LOWER(client) order by count(LOWER(client)) desc limit 10');
$clients = array();