[Tickets #4105] NEW: [patch] Add check on listEvents API method for empty date constraints
bugs@bugs.horde.org
bugs at bugs.horde.org
Sat Jul 1 14:50:20 PDT 2006
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: https://dev.horde.org/horde/whups/ticket/?id=4105
-----------------------------------------------------------------------
Ticket | 4105
Created By | Ben Klang <ben at alkaloid.net>
Summary | [patch] Add check on listEvents API method for empty date constraints
Queue | Kronolith
Version | HEAD
State | New
Priority | 1. Low
Type | Enhancement
Owners |
+New Attachment | kronolith-check-missing-params.patch
-----------------------------------------------------------------------
Ben Klang <ben at alkaloid.net> (2006-07-01 14:50) wrote:
Due to the nature of XML-RPC, null cannot be passed as a function argument.
The alternatives are to pass 0, false, or "". Since 0 has a meaning as a
date, the startstamp and endstamp arguments must be passed as false or "".
However this isn't caught by the Kronolith libs which are looking for a
null and bad comparisons result.
This patch checks for empty startstamp and endstamp params and resets the
to null to allow the comparisons to work correctly.
More information about the bugs
mailing list