From bb33a84436ba7cc24cb545ecfd45a7786a3d6f63 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 27 Aug 2015 15:31:08 +0200 Subject: [PATCH] Added min value for birthdays --- .../files/lib/system/option/BirthdayOptionType.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/option/BirthdayOptionType.class.php b/wcfsetup/install/files/lib/system/option/BirthdayOptionType.class.php index 1d7ee2019b..7c7ee1367d 100644 --- a/wcfsetup/install/files/lib/system/option/BirthdayOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/BirthdayOptionType.class.php @@ -33,7 +33,7 @@ class BirthdayOptionType extends DateOptionType { if (empty($newValue)) return; $timestamp = @strtotime($newValue); - if ($timestamp > TIME_NOW) { + if ($timestamp > TIME_NOW || $timestamp < -2147483647) { throw new UserInputException($option->optionName, 'validationFailed'); } } -- 2.20.1