From f1491b80403a29cc6f22ff0c628ae4b288ee883e Mon Sep 17 00:00:00 2001 From: William Date: Mon, 2 Jan 2023 16:49:23 +0000 Subject: [PATCH] Replace ctype_digit() with is_numeric() --- public/librespeed/backend/garbage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/librespeed/backend/garbage.php b/public/librespeed/backend/garbage.php index 3c5753c..32abcf4 100755 --- a/public/librespeed/backend/garbage.php +++ b/public/librespeed/backend/garbage.php @@ -12,7 +12,7 @@ function getChunkCount() { if ( !array_key_exists('ckSize', $_GET) - || !ctype_digit($_GET['ckSize']) + || !is_numeric($_GET['ckSize']) || (int) $_GET['ckSize'] <= 0 ) { return 4;