From 78156484bf138283484ddf49ad1cd8e2d630fa64 Mon Sep 17 00:00:00 2001 From: Megan Howell <62813469+cyberqueen-meg@users.noreply.github.com> Date: Sat, 16 Jul 2022 16:07:39 -0700 Subject: [PATCH] Update to not freak out over vlans https://www.reddit.com/r/RaspAP/comments/w0mm0v/how_to_configure_dhcp_on_vlan_interfaces/ --- includes/dhcp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/dhcp.php b/includes/dhcp.php index 850d5847..62371722 100755 --- a/includes/dhcp.php +++ b/includes/dhcp.php @@ -120,7 +120,7 @@ function validateDHCPInput() { define('IFNAMSIZ', 16); $iface = $_POST['interface']; - if (!preg_match('/^[a-zA-Z0-9]+$/', $iface) + if (!preg_match('/^[^\s\/\\0]+$/', $iface) || strlen($iface) >= IFNAMSIZ ) { $errors .= _('Invalid interface name.').'
'.PHP_EOL;