Use better numeric check in the changelog date checker.
This commit is contained in:
parent
97024927ff
commit
a89c634799
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue