mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 15:40:22 +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);
|
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 a new issue