From: Marcel Werk Date: Thu, 27 Aug 2015 13:31:08 +0000 (+0200) Subject: Added min value for birthdays X-Git-Tag: 2.1.7~22 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bb33a84436ba7cc24cb545ecfd45a7786a3d6f63;p=GitHub%2FWoltLab%2FWCF.git Added min value for birthdays --- 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'); } }