From e3babd9845eccdfe87ee9d85b531d043904608d6 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Tue, 29 Jun 2010 23:50:41 +1200 Subject: [PATCH] Respond with supported-report error if the report is unsupported. --- inc/caldav-REPORT.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-REPORT.php b/inc/caldav-REPORT.php index ebf07341..f742e2d2 100644 --- a/inc/caldav-REPORT.php +++ b/inc/caldav-REPORT.php @@ -320,6 +320,6 @@ elseif ( $xmltree->GetTag() == "urn:ietf:params:xml:ns:carddav:addressbook-query include("caldav-REPORT-cardquery.php"); } else { - $request->DoResponse( 501, "The XML is not a supported REPORT query document" ); + $request->PreconditionFailed( 403, 'DAV::supported-report', sprintf( '"%s" is not a supported report type') ); }