aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_profile_fields.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-06-15 15:16:33 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-06-15 15:16:33 +0000
commit86cc481f1c534362191ab54248eb94847c294d65 (patch)
tree90d77cb79bd298a8f21fa38ca03cc566b14ec514 /phpBB/includes/functions_profile_fields.php
parenta161503f2a3b62cebc719b9eaa7bb07b925aef66 (diff)
downloadforums-86cc481f1c534362191ab54248eb94847c294d65.tar
forums-86cc481f1c534362191ab54248eb94847c294d65.tar.gz
forums-86cc481f1c534362191ab54248eb94847c294d65.tar.bz2
forums-86cc481f1c534362191ab54248eb94847c294d65.tar.xz
forums-86cc481f1c534362191ab54248eb94847c294d65.zip
check for correct entered date for date profile field
git-svn-id: file:///svn/phpbb/trunk@6070 89ea8834-ac86-4346-8a33-228a782c2dd0
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: