From a89c634799728bffc0274e4244ae83c8029bf315 Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 8 Oct 2018 15:24:26 +0200 Subject: [PATCH] Use better numeric check in the changelog date checker. --- public/changelog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/changelog.php b/public/changelog.php index 4aeb12a7..c3f4d5ed 100644 --- a/public/changelog.php +++ b/public/changelog.php @@ -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;