Fix checkNumeric validation (#3872)

This commit is contained in:
jekkos
2024-09-17 02:01:42 +02:00
parent d69e7be848
commit 7d04371425
2 changed files with 6 additions and 6 deletions

View File

@@ -89,14 +89,15 @@ class Secure_Controller extends BaseController
*/
public function getCheckNumeric(): void
{
$result = true;
foreach($this->request->getGet(null, FILTER_SANITIZE_FULL_SPECIAL_CHARS) as $value)
{
$result &= (int)parse_decimals($value);
if (!parse_decimals($value))
{
echo 'false';
return;
}
}
echo $result !== false ? 'true' : 'false';
echo 'true';
}
/**