Added min value for birthdays
authorMarcel Werk <burntime@woltlab.com>
Thu, 27 Aug 2015 13:31:08 +0000 (15:31 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 27 Aug 2015 13:31:08 +0000 (15:31 +0200)
wcfsetup/install/files/lib/system/option/BirthdayOptionType.class.php

index 1d7ee2019b74e9824d0cf2a4afb9182f7efb4807..7c7ee1367da1bd0e243320ce34aab09420e3257d 100644 (file)
@@ -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');
                }
        }