Get started with PHP-Fusion

Start a New Thread

Users Participated

  • Craig
    Post made: 1
  • JoiNNN
    Post made: 1

  1. PHP-Fusion Support Forums
  2. Development & Design
  3. Roadmap

Birthdate User Field allows invalid dates

[Development Team Access] All Roadmap items end up here for discussions.

1 Reply 2,518 Views Last Updated on 3 years ago

JoiNNN


Veteran Member

#1

Posted 3 years ago

The code inside this userfield doesn't do a proper check and allows future dates to be inserted as birth date (have a look at my date of birth on this site).
Just add to the code
Code Gist: Download source  

&& $_POST['user_year'] < date("Y");


Go to roadmap item #1503

Posts: 862

Joined: 05/02/2011

Craig


Moderator

#2

Posted 3 years ago

Yeah also it lets you set just one or 2 or all 3 like you can set only month or only year or only day. It does not check all are filled. It's been like that for ever or at least since the field was recoded lol. It was reported previously but since the roadmap has lost a lot of entries I guess that is another one forgotten about.

Posts: 4531

Joined: 27/09/2005

Jump to Forum:
16 users are online
0 member and 16 guests