From d15a190134d273777f73179b318be7dfcc188c8f Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 20 Feb 2011 10:16:58 +1300 Subject: [PATCH] Correct error message for unsupported report request. Signed-off-by: Andrew McMillan --- inc/caldav-REPORT.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/caldav-REPORT.php b/inc/caldav-REPORT.php index 8a327af6..49c7812c 100644 --- a/inc/caldav-REPORT.php +++ b/inc/caldav-REPORT.php @@ -329,6 +329,7 @@ elseif ( $xmltree->GetTag() == "urn:ietf:params:xml:ns:carddav:addressbook-query include("caldav-REPORT-cardquery.php"); } else { - $request->PreconditionFailed( 403, 'DAV::supported-report', sprintf( '"%s" is not a supported report type') ); + dbg_error_log( 'ERROR', "Request for unsupported report type '%s'.", $xmltree->GetTag() ); + $request->PreconditionFailed( 403, 'DAV::supported-report', sprintf( '"%s" is not a supported report type', $xmltree->GetTag()) ); }