diff --git a/debian/changelog b/debian/changelog index dde61b95..c2eacca8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +rscds (0.1.6) unstable; urgency=low + + * Fix some bugs in caldav-REPORT, which was not working with Lightning. + + -- Andrew McMillan Sun, 1 Oct 2006 23:22:37 +1300 + rscds (0.1.5) unstable; urgency=low * Support for some parts of PROPFIND and MKCALENDAR now in an effort to diff --git a/inc/caldav-REPORT.php b/inc/caldav-REPORT.php index c3f1b1c2..ad9fbb51 100644 --- a/inc/caldav-REPORT.php +++ b/inc/caldav-REPORT.php @@ -159,7 +159,7 @@ header("Content-type: text/xml;charset=UTF-8"); $response_tpl = <<%s - %s + %s%s HTTP/1.1 200 OK @@ -223,9 +223,9 @@ REPORTHDR; case 'GETCONTENTTYPE': $value = "text/calendar"; break; case 'RESOURCETYPE': $value = "VEVENT"; break; } - $value = sprintf( $property_tpl, strtolower($k), $value, strtolower($k)); + $properties .= sprintf( $property_tpl, strtolower($k), $value, strtolower($k)); } - printf( $response_tpl, $calhref, $value, $caldata ); + printf( $response_tpl, $calhref, $properties, $caldata ); dbg_error_log("REPORT", "ETag >>%s<< >>http://%s:%s%s%s<<", $event->dav_etag, $_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT'], $_SERVER['SCRIPT_NAME'], $event->dav_name); } diff --git a/rscds.webprj b/rscds.webprj index d1822129..040d5b43 100644 --- a/rscds.webprj +++ b/rscds.webprj @@ -25,7 +25,6 @@ - @@ -47,9 +46,9 @@ - - - - + + + +