From 4baac6eae2e94454db38113b9e0d4ec47fa19df8 Mon Sep 17 00:00:00 2001 From: billz Date: Sun, 2 May 2021 07:15:12 +0100 Subject: [PATCH] Escape constant, arg + extension --- ajax/networking/get_netcfg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;