Summary | Improve input validation of datetime and hourminutesecond form fields |
Queue | Horde Framework Packages |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | thomas.jarosch (at) intra2net (dot) com |
Created | 05/23/2007 (6659 days ago) |
Due | |
Updated | 05/23/2007 (6659 days ago) |
Assigned | 05/23/2007 (6659 days ago) |
Resolved | 05/23/2007 (6659 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
Assigned to Jan Schneider
State ⇒ Resolved
this into account? See
http://cvs.horde.org/diff.php?r1=1.401&r2=1.402&f=framework%2FForm%2FForm.php
the empty check gets called with an array of five elements in case of
nag's "due" field. As you limited the check to only check the date
relevant fields, $empty counts to three which is != count($date).
State ⇒ Feedback
this into account? See
http://cvs.horde.org/diff.php?r1=1.401&r2=1.402&f=framework%2FForm%2FForm.php
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Improve input validation of datetime and hourminutesecond form fields
Queue ⇒ Horde Framework Packages
New Attachment: framework-fix-datetime-validation.patch
State ⇒ Unconfirmed
attached patch improves the input validation of datetime and the
hourminutesecond form fields. PHP considers empty("0") to be empty,
which is bad for time fields.
If one field is set in datetime, we require all fields. Also datetime
calls the input validation of the monthdayyear field with an array of
five elements, this also broke the empty check of monthdayyear.
Thomas