Revision 28e2b611
Added by Jim Pingle almost 2 years ago
src/usr/local/www/services_dhcpv6.php | ||
---|---|---|
214 | 214 |
|
215 | 215 |
$numberoptions = array(); |
216 | 216 |
for ($x = 0; $x < 99; $x++) { |
217 |
if (isset($_POST["number{$x}"]) && ctype_digit($_POST["number{$x}"])) {
|
|
217 |
if (isset($_POST["number{$x}"]) && ctype_digit(strval($_POST["number{$x}"]))) {
|
|
218 | 218 |
$numbervalue = array(); |
219 | 219 |
$numbervalue['number'] = htmlspecialchars($_POST["number{$x}"]); |
220 | 220 |
$numbervalue['value'] = base64_encode($_POST["value{$x}"]); |
Also available in: Unified diff
Cast to string before ctype_digit() testing. Fixes #14702