mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-28 03:04:15 +00:00
Fix positive PROPPATCH response message body.
The response values must be inside a DAV:response element, which was missing before.
This commit is contained in:
parent
3ca7960746
commit
ba13b8db46
@ -327,14 +327,15 @@ if ( $qry->Commit() ) {
|
|||||||
|
|
||||||
$url = ConstructURL($request->path);
|
$url = ConstructURL($request->path);
|
||||||
$multistatus = new XMLElement('multistatus');
|
$multistatus = new XMLElement('multistatus');
|
||||||
$reply->DAVElement($multistatus,'href', $url);
|
$response = $multistatus->NewElement('response');
|
||||||
$reply->DAVElement($multistatus,'responsedescription', translate("All requested changes were made.") );
|
$reply->DAVElement($response,'href', $url);
|
||||||
|
$reply->DAVElement($response,'responsedescription', translate("All requested changes were made.") );
|
||||||
|
|
||||||
$prop = new XMLElement('prop');
|
$prop = new XMLElement('prop');
|
||||||
foreach( $success AS $tag => $v ) {
|
foreach( $success AS $tag => $v ) {
|
||||||
$reply->NSElement($prop, $tag);
|
$reply->NSElement($prop, $tag);
|
||||||
}
|
}
|
||||||
$reply->DAVElement($multistatus, 'propstat', array( $prop, new XMLElement( 'status', 'HTTP/1.1 200 OK' )) );
|
$reply->DAVElement($response, 'propstat', array( $prop, new XMLElement( 'status', 'HTTP/1.1 200 OK' )) );
|
||||||
|
|
||||||
$url = ConstructURL($request->path);
|
$url = ConstructURL($request->path);
|
||||||
array_unshift( $failure, new XMLElement('href', $url ) );
|
array_unshift( $failure, new XMLElement('href', $url ) );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user