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