Browse Source

Merge pull request #1189 from cyberqueen-meg/master

Update to not freak out over vlans - see reddit post
pull/1227/head
Bill Zimmerman 4 months ago
committed by GitHub
parent
commit
ee3de983ab
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      includes/dhcp.php

2
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.').'<br />'.PHP_EOL;

Loading…
Cancel
Save