From 86cc481f1c534362191ab54248eb94847c294d65 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 15 Jun 2006 15:16:33 +0000 Subject: [PATCH] check for correct entered date for date profile field git-svn-id: file:///svn/phpbb/trunk@6070 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_profile_fields.php | 5 +++++ 1 file changed, 5 insertions(+) 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: