Development

#8134 (sfValidatorDate fails to parse negative timestamps in doClean method)

You must first sign up to be able to contribute.

Ticket #8134 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

sfValidatorDate fails to parse negative timestamps in doClean method

Reported by: fbv Assigned to: fabien
Priority: minor Milestone: 1.3.2
Component: validation Version: 1.4.0
Keywords: Cc:
Qualification: Unreviewed

Description

The use of the ctype_digit function in the doClean method returns false for negative timestamps, which should instead be accepted.

Replacing every occurrence of ctype_digit with is_numeric fixes the problem.

The fix to this problem is related to ticket #4193, and should be combined with the fix described in ticket #8118 to make the validator work correctly.

Change History

01/19/10 11:43:02 changed by fabien

  • milestone set to 1.3.2.

01/19/10 11:43:10 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [26871]) [1.3, 1.4] fixed sfValidateDate for negative timestamps (closes #8134)