diff options
-rwxr-xr-x | usr/local/www/interfaces_opt.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php index eb559cf..2399628 100755 --- a/usr/local/www/interfaces_opt.php +++ b/usr/local/www/interfaces_opt.php @@ -146,6 +146,9 @@ if ($_POST) { if($_POST['bandwidth'] <> "" && !is_numeric($_POST['bandwidth'])) { $input_errors[] = "A valid bandwidth value is required 1-999999."; } + if (($_POST['spoofmac'] && !is_macaddr($_POST['spoofmac']))) { + $input_errors[] = "A valid MAC address must be specified."; + } } /* Wireless interface? */ |