Use better numeric check in the changelog date checker.

This commit is contained in:
flash 2018-10-08 15:24:26 +02:00
parent 97024927ff
commit a89c634799

View file

@ -71,7 +71,7 @@ if (!empty($changelogDate)) {
$dateParts = explode('-', $changelogDate, 3);
if (count($dateParts) !== 3
|| !array_test($dateParts, 'is_numeric')
|| !array_test($dateParts, 'is_user_int')
|| !checkdate($dateParts[1], $dateParts[2], $dateParts[0])) {
echo render_error(404);
return;