Merge pull request #1189 from cyberqueen-meg/master
Update to not freak out over vlans - see reddit post
This commit is contained in:
commit
ee3de983ab
|
@ -120,7 +120,7 @@ function validateDHCPInput()
|
||||||
{
|
{
|
||||||
define('IFNAMSIZ', 16);
|
define('IFNAMSIZ', 16);
|
||||||
$iface = $_POST['interface'];
|
$iface = $_POST['interface'];
|
||||||
if (!preg_match('/^[a-zA-Z0-9]+$/', $iface)
|
if (!preg_match('/^[^\s\/\\0]+$/', $iface)
|
||||||
|| strlen($iface) >= IFNAMSIZ
|
|| strlen($iface) >= IFNAMSIZ
|
||||||
) {
|
) {
|
||||||
$errors .= _('Invalid interface name.').'<br />'.PHP_EOL;
|
$errors .= _('Invalid interface name.').'<br />'.PHP_EOL;
|
||||||
|
|
Loading…
Reference in New Issue