summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authork-paulius <k.dash.paulius@gmail.com>2015-03-22 14:31:58 -0500
committerRenato Botelho <garga@FreeBSD.org>2015-03-23 10:36:14 -0300
commit78317c256239c69bd13f0351d6f4a5a83049338d (patch)
treee914d5fda66a7c4be54b97d0345748598a18d284 /usr
parent0f7f6aa91fb73db6cba1169ac9871e80b8cfd8ea (diff)
downloadpfsense-78317c256239c69bd13f0351d6f4a5a83049338d.zip
pfsense-78317c256239c69bd13f0351d6f4a5a83049338d.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')
-rw-r--r--usr/local/www/interfaces.php8
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']))
OpenPOWER on IntegriCloud