Replace ctype_digit() with is_numeric()

This commit is contained in:
William 2023-01-02 16:49:23 +00:00
parent b32f1aea35
commit f1491b8040
1 changed files with 1 additions and 1 deletions

View File

@ -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;