diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-14 17:55:04 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-14 17:55:04 +0000 |
commit | 3a843b96bc682e18853952e3a97658cf52376684 (patch) | |
tree | cbbf61c3741ac7ba29472135c7e04f61daef3eb3 /usr | |
parent | 0138d49256d63c6c7ad76cced640e656bcc54326 (diff) | |
download | pfsense-3a843b96bc682e18853952e3a97658cf52376684.zip pfsense-3a843b96bc682e18853952e3a97658cf52376684.tar.gz |
Enforce correct mac address
Ticket #345
Diffstat (limited to 'usr')
-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? */ |