diff options
author | k-paulius <k.dash.paulius@gmail.com> | 2015-03-22 14:31:58 -0500 |
---|---|---|
committer | k-paulius <k.dash.paulius@gmail.com> | 2015-03-22 14:31:58 -0500 |
commit | 4c6d81ea930f9748ff31f9c6e120988bf521ca53 (patch) | |
tree | a337788a686e2140c7cc6d8bd0448ef070f81167 /usr/local | |
parent | ddb4b472866e890379122c65f50c47b3ebafc5e9 (diff) | |
download | pfsense-4c6d81ea930f9748ff31f9c6e120988bf521ca53.zip pfsense-4c6d81ea930f9748ff31f9c6e120988bf521ca53.tar.gz |
Use is_numericint() instead of empty() to check if value has been entered because empty() does not allow 0, which is a valid value.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/interfaces.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 425bbfe..62cf658 100644 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -1157,7 +1157,7 @@ if ($_POST['apply']) { $wancfg['adv_dhcp6_id_assoc_statement_address_enable'] = $_POST['adv_dhcp6_id_assoc_statement_address_enable']; if (!empty($_POST['adv_dhcp6_id_assoc_statement_address'])) $wancfg['adv_dhcp6_id_assoc_statement_address'] = $_POST['adv_dhcp6_id_assoc_statement_address']; - if (!empty($_POST['adv_dhcp6_id_assoc_statement_address_id'])) + if (is_numericint($_POST['adv_dhcp6_id_assoc_statement_address_id'])) $wancfg['adv_dhcp6_id_assoc_statement_address_id'] = $_POST['adv_dhcp6_id_assoc_statement_address_id']; if (!empty($_POST['adv_dhcp6_id_assoc_statement_address_pltime'])) $wancfg['adv_dhcp6_id_assoc_statement_address_pltime'] = $_POST['adv_dhcp6_id_assoc_statement_address_pltime']; @@ -1168,16 +1168,16 @@ if ($_POST['apply']) { $wancfg['adv_dhcp6_id_assoc_statement_prefix_enable'] = $_POST['adv_dhcp6_id_assoc_statement_prefix_enable']; if (!empty($_POST['adv_dhcp6_id_assoc_statement_prefix'])) $wancfg['adv_dhcp6_id_assoc_statement_prefix'] = $_POST['adv_dhcp6_id_assoc_statement_prefix']; - if (!empty($_POST['adv_dhcp6_id_assoc_statement_prefix_id'])) + if (is_numericint($_POST['adv_dhcp6_id_assoc_statement_prefix_id'])) $wancfg['adv_dhcp6_id_assoc_statement_prefix_id'] = $_POST['adv_dhcp6_id_assoc_statement_prefix_id']; if (!empty($_POST['adv_dhcp6_id_assoc_statement_prefix_pltime'])) $wancfg['adv_dhcp6_id_assoc_statement_prefix_pltime'] = $_POST['adv_dhcp6_id_assoc_statement_prefix_pltime']; if (!empty($_POST['adv_dhcp6_id_assoc_statement_prefix_vltime'])) $wancfg['adv_dhcp6_id_assoc_statement_prefix_vltime'] = $_POST['adv_dhcp6_id_assoc_statement_prefix_vltime']; - if (!empty($_POST['adv_dhcp6_prefix_interface_statement_sla_id'])) + if (is_numericint($_POST['adv_dhcp6_prefix_interface_statement_sla_id'])) $wancfg['adv_dhcp6_prefix_interface_statement_sla_id'] = $_POST['adv_dhcp6_prefix_interface_statement_sla_id']; - if (!empty($_POST['adv_dhcp6_prefix_interface_statement_sla_len'])) + if (is_numericint($_POST['adv_dhcp6_prefix_interface_statement_sla_len'])) $wancfg['adv_dhcp6_prefix_interface_statement_sla_len'] = $_POST['adv_dhcp6_prefix_interface_statement_sla_len']; if (!empty($_POST['adv_dhcp6_authentication_statement_authname'])) |