diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-08-20 21:56:12 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-08-20 21:56:12 -0400 |
commit | c7820b65b3a8c8876f5337524b762ce21fb94615 (patch) | |
tree | 78b614273fe471f529fe4b3a729807540c2ec696 /usr/local | |
parent | 990a271cb6baf3a4435fa6d2c43973fb28aa2302 (diff) | |
download | pfsense-c7820b65b3a8c8876f5337524b762ce21fb94615.zip pfsense-c7820b65b3a8c8876f5337524b762ce21fb94615.tar.gz |
Use intval()
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/services_dhcp.php | 2 |
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; |