aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_profile_fields.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_profile_fields.php')
-rw-r--r--phpBB/includes/functions_profile_fields.php5
1 files changed, 5 insertions, 0 deletions
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: