mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 03:10:18 +01:00
Make sure variables are empty before call of sscanf()
This commit is contained in:
@@ -51,7 +51,7 @@ function readStaticLeasesFile()
|
||||
while(!feof($dhcpstatic))
|
||||
{
|
||||
// Remove any possibly existing variable with this name
|
||||
$mac = "";
|
||||
$mac = ""; $one = ""; $two = "";
|
||||
sscanf(trim(fgets($dhcpstatic)),"dhcp-host=%[^,],%[^,],%[^,]",$mac,$one,$two);
|
||||
if(strlen($mac) > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user