Respond with supported-report error if the report is unsupported.

This commit is contained in:
Andrew McMillan 2010-06-29 23:50:41 +12:00
parent 0c64725ba2
commit e3babd9845

View File

@ -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') );
}