Fix parent-set response on collections.

This commit is contained in:
Andrew McMillan 2010-03-19 10:31:55 +13:00
parent 8a26fa4b82
commit 00cce278ef

View File

@ -1215,7 +1215,7 @@ EOQRY;
case 'DAV::parent-set': case 'DAV::parent-set':
$parent_set = $reply->DAVElement( $prop, 'parent-set' ); $parent_set = $reply->DAVElement( $prop, 'parent-set' );
if ( preg_match( '{^(.*)/([^/]+)/?$}', $this->bound_from, $matches ) ) { if ( preg_match( '{^(.*)/([^/]+)/?$}', $this->bound_from(), $matches ) ) {
$reply->DAVElement($parent_set, 'parent', array( $reply->DAVElement($parent_set, 'parent', array(
new XMLElement( 'href', ConstructURL($matches[1])), new XMLElement( 'href', ConstructURL($matches[1])),
new XMLElement( 'segment', $matches[2]) new XMLElement( 'segment', $matches[2])