Replace ctype_digit() with is_numeric()
This commit is contained in:
parent
b32f1aea35
commit
f1491b8040
@ -12,7 +12,7 @@ function getChunkCount()
|
|||||||
{
|
{
|
||||||
if (
|
if (
|
||||||
!array_key_exists('ckSize', $_GET)
|
!array_key_exists('ckSize', $_GET)
|
||||||
|| !ctype_digit($_GET['ckSize'])
|
|| !is_numeric($_GET['ckSize'])
|
||||||
|| (int) $_GET['ckSize'] <= 0
|
|| (int) $_GET['ckSize'] <= 0
|
||||||
) {
|
) {
|
||||||
return 4;
|
return 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user