  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: account_edit.php 1739 2007-12-20 00:52:16Z hpdl $ |
| |
| 3 | + | $Id: account_edit.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 | | */ |
| |
|
|
 |
… |
|
52 | 52 | | } |
| |
53 | 53 | | |
| |
54 | 54 | | if (ACCOUNT_DOB == 'true') { |
  |
55 | | - | if (!checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4))) { |
| |
| 55 | + | 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)) { |
  |
56 | 56 | | $error = true; |
| |
57 | 57 | | |
| |
58 | 58 | | $messageStack->add('account_edit', ENTRY_DATE_OF_BIRTH_ERROR); |