mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Ensure full response in error.
This commit is contained in:
parent
dadc34b0ea
commit
58675d4982
@ -185,10 +185,10 @@ if ( count($failure) > 0 ) {
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
$href = new XMLElement('href', $c->protocol_server_port_script . $request->path );
|
array_unshift( $failure, new XMLElement('href', $c->protocol_server_port_script . $request->path ) );
|
||||||
$desc = new XMLElement('responsedescription', translate("Some properties were not able to be changed.") );
|
$failure[] = new XMLElement('responsedescription', translate("Some properties were not able to be changed.") );
|
||||||
|
|
||||||
$multistatus = new XMLElement( "multistatus", new XMLElement( 'response', array( $href, $failure, $desc ) ), array('xmlns'=>'DAV:') );
|
$multistatus = new XMLElement( "multistatus", new XMLElement( 'response', array_merge( $href, $failure, $desc ) ), array('xmlns'=>'DAV:') );
|
||||||
$request->DoResponse( 207, $multistatus->Render(0,'<?xml version="1.0" encoding="utf-8" ?>'), 'text/xml; charset="utf-8"' );
|
$request->DoResponse( 207, $multistatus->Render(0,'<?xml version="1.0" encoding="utf-8" ?>'), 'text/xml; charset="utf-8"' );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user