mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 03:10:18 +01:00
Fix Top Clients filter
It expected IP addresses, but only let in domains Signed-off-by: Mark Drobnak <newtoncat12@yahoo.com>
This commit is contained in:
@@ -320,7 +320,7 @@ function readAdlists()
|
||||
$first = true;
|
||||
foreach($clients as $client)
|
||||
{
|
||||
if(!validDomainWildcard($client))
|
||||
if(!validIP($domain))
|
||||
{
|
||||
$error .= "Top Clients entry ".htmlspecialchars($client)." is invalid (use only IP addresses)!<br>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user