mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
Update to not freak out over vlans
https://www.reddit.com/r/RaspAP/comments/w0mm0v/how_to_configure_dhcp_on_vlan_interfaces/
This commit is contained in:
parent
f299427ad1
commit
78156484bf
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue