mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Rereading RFC3744 we see <owner> must be the principal-URL of the owner
This commit is contained in:
parent
635e53e35f
commit
f9a4fecaaa
@ -243,7 +243,8 @@ function add_general_properties( &$prop, &$not_found, &$denied, $record ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( isset($prop_list['DAV::owner']) ) {
|
if ( isset($prop_list['DAV::owner']) ) {
|
||||||
$prop->NewElement("owner", new XMLElement('href', 'mailto:'.$request->principal->email ) );
|
// After a careful reading of RFC3744 we see that this must be the principal-URL of the owner
|
||||||
|
$prop->NewElement("owner", new XMLElement('href', $request->principal->url ) );
|
||||||
}
|
}
|
||||||
if ( isset($prop_list['DAV::principal-collection-set']) ) {
|
if ( isset($prop_list['DAV::principal-collection-set']) ) {
|
||||||
$prop->NewElement("principal-collection-set", new XMLElement('href', ConstructURL('/') ) );
|
$prop->NewElement("principal-collection-set", new XMLElement('href', ConstructURL('/') ) );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user