  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: create_account.php 1739 2007-12-20 00:52:16Z hpdl $ |
| |
| 3 | + | $Id: create_account.php 1840 2008-12-12 12:32:40Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
7 | 7 | | |
  |
8 | | - | Copyright (c) 2003 osCommerce |
| |
| 8 | + | Copyright (c) 2008 osCommerce |
|
9 | 9 | | |
| |
10 | 10 | | Released under the GNU General Public License |
| |
11 | 11 | | */ |
| |
|
|
 |
… |
|
77 | 77 | | } |
| |
78 | 78 | | |
| |
79 | 79 | | if (ACCOUNT_DOB == 'true') { |
  |
80 | | - | if (checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4)) == false) { |
| |
| 80 | + | if ((is_numeric(tep_date_raw($dob)) == false) || (@checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4)) == false)) { |
  |
81 | 81 | | $error = true; |
| |
82 | 82 | | |
| |
83 | 83 | | $messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR); |