diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php index 4938f9cc33..2a9293a8e0 100644 --- a/phpBB/includes/functions_profile_fields.php +++ b/phpBB/includes/functions_profile_fields.php @@ -113,6 +113,11 @@ class custom_profile { return 'FIELD_INVALID_DATE'; } + + if (!checkdate($month, $day, $year) === false) + { + return 'FIELD_INVALID_DATE'; + } break; case FIELD_BOOL: