Smuggled classified secrets into this repository.
[citadel.git] / webcit-ng / server / caldav_reports.c
index eac1e7e383c3c30c2a20d32d8313f93cafc243a9..c47164fa7023e5abd379ada739da4f24eb72fe36 100644 (file)
@@ -259,16 +259,19 @@ void caldav_report_one_item(struct http_transaction *h, struct ctdlsession *c, S
 
 // Compare function for "time-range" tests (RFC4791 section 9.9)
 // Returns nonzero if the supplied icalcomponent occurs within the specified time range
-int caldav_time_range_filter_matches(icalcomponent *cal, char *start, char *end) {
+int caldav_time_range_filter_matches(icalcomponent *cal, char *start_str, char *end_str) {
 
-       TRACE;
-       syslog(LOG_DEBUG, "Does this %s fall between %s and %s ?",
+
+       struct icaltimetype start = (start_str ? icaltime_from_string(start_str) : icaltime_null_time());
+       struct icaltimetype end = (end_str ? icaltime_from_string(end_str) : icaltime_null_time());
+
+       syslog(LOG_DEBUG, "\033[7mcaldav_time_range_filter_matches()\033[0m : Does this %s fall between %s and %s ?",
                icalcomponent_kind_to_string(icalcomponent_isa(cal)),
                start,
                end
        );
 
-       return(1);
+       return(0);              // reject everything for now
 }