ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Ignore:
Timestamp:
Feb 20, 2009, 11:59:07 PM (13 years ago)
Author:
ebihara
Message:

#3590:changed opValidatorDate doesn't handle a year over 4 digits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/validator/opValidatorDate.class.php

    r10003 r10819  
    9595    }
    9696
     97    if (strlen((int)$value['year']) > 4)
     98    {
     99      throw new sfValidatorError($this, 'invalid', array('value' => $value));
     100    }
     101
    97102    if (!checkdate(intval($value['month']), intval($value['day']), intval($value['year'])))
    98103    {
Note: See TracChangeset for help on using the changeset viewer.