mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
check for correct entered date for date profile field
git-svn-id: file:///svn/phpbb/trunk@6070 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
a161503f2a
commit
86cc481f1c
1 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue