[Tickets #5394] Improve input validation of datetime and hourminutesecond form fields

bugs at bugs.horde.org bugs at bugs.horde.org
Wed May 23 14:29:24 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=5394
-----------------------------------------------------------------------
 Ticket             | 5394
 Created By         | thomas.jarosch at intra2net.com
 Summary            | Improve input validation of datetime and hourminutesecond form fields
 Queue              | Horde Framework Packages
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 1. Low
 Owners             | 
+New Attachment     | framework-fix-datetime-validation.patch
-----------------------------------------------------------------------


thomas.jarosch at intra2net.com (2007-05-23 07:29) wrote:

Hello,

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




More information about the bugs mailing list