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;