mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 03:10:18 +01:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user