diff --git a/ajax/networking/get_netcfg.php b/ajax/networking/get_netcfg.php index 8325b354..50bc637a 100644 --- a/ajax/networking/get_netcfg.php +++ b/ajax/networking/get_netcfg.php @@ -7,7 +7,7 @@ $interface = $_POST['iface']; if (isset($interface)) { // fetch dnsmasq.conf settings for interface - exec('cat '. RASPI_DNSMASQ_PREFIX.escapeshellarg($interface).'.conf', $return); + exec('cat '. escapeshellarg(RASPI_DNSMASQ_PREFIX.$interface.'.conf'), $return); $conf = ParseConfig($return); $dhcpdata['DHCPEnabled'] = empty($conf) ? false : true;