mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-01 16:11:20 +00:00
PROPPATCH response should contain a propstat clause.
This commit is contained in:
parent
5f3c87f1f9
commit
160d87f5d2
@ -334,7 +334,18 @@ if ( $qry->Commit() ) {
|
|||||||
$href = new XMLElement('href', $url );
|
$href = new XMLElement('href', $url );
|
||||||
$desc = new XMLElement('responsedescription', translate("All requested changes were made.") );
|
$desc = new XMLElement('responsedescription', translate("All requested changes were made.") );
|
||||||
|
|
||||||
$multistatus = new XMLElement( "multistatus", new XMLElement( 'response', array( $href, $desc ) ), array('xmlns'=>'DAV:') );
|
$propstat = array();
|
||||||
|
foreach( $success AS $tag => $v ) {
|
||||||
|
$propstat[] = new XMLElement( 'propstat', array(
|
||||||
|
new XMLElement( 'prop', new XMLElement($tag)),
|
||||||
|
new XMLElement( 'status', 'HTTP/1.1 200 OK' ),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
$url = ConstructURL($request->path);
|
||||||
|
array_unshift( $failure, new XMLElement('href', $url ) );
|
||||||
|
|
||||||
|
$multistatus = new XMLElement( "multistatus", new XMLElement( 'response', array( $href, $propstat, $desc ) ), array('xmlns'=>'DAV:') );
|
||||||
$request->DoResponse( 200, $multistatus->Render(0,'<?xml version="1.0" encoding="utf-8" ?>'), 'text/xml; charset="utf-8"' );
|
$request->DoResponse( 200, $multistatus->Render(0,'<?xml version="1.0" encoding="utf-8" ?>'), 'text/xml; charset="utf-8"' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user