summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-20 21:56:12 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-20 21:56:12 -0400
commitc7820b65b3a8c8876f5337524b762ce21fb94615 (patch)
tree78b614273fe471f529fe4b3a729807540c2ec696 /usr/local/www/services_dhcp.php
parent990a271cb6baf3a4435fa6d2c43973fb28aa2302 (diff)
downloadpfsense-c7820b65b3a8c8876f5337524b762ce21fb94615.zip
pfsense-c7820b65b3a8c8876f5337524b762ce21fb94615.tar.gz
Use intval()
Diffstat (limited to 'usr/local/www/services_dhcp.php')
-rwxr-xr-xusr/local/www/services_dhcp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 1e94ced..b198e58 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -299,7 +299,7 @@ if ($_POST) {
$numbervalue = array();
unset($config['dhcpd'][$if]['numberoptions']['item']);
for($x=0; $x<isset($_POST["number{$x}"]); $x++) {
- if(is_int($_POST["number{$x}"])) {
+ if(is_int(intval($_POST["number{$x}"]))) {
$numbervalue['number'] = htmlspecialchars($_POST["number{$x}"]);
$numbervalue['value'] = htmlspecialchars($_POST["value{$x}"]);
$config['dhcpd'][$if]['numberoptions']['item'][] = $numbervalue;
OpenPOWER on IntegriCloud