Reply to denied/notfound properties with a namespace-aliased response.

This commit is contained in:
Andrew McMillan 2009-12-26 13:27:55 +13:00
parent f33de018f3
commit 67c8be1f2a

View File

@ -1211,7 +1211,7 @@ EOQRY;
$status = new XMLElement('status', 'HTTP/1.1 403 Forbidden' );
$noprop = new XMLElement('prop');
foreach( $denied AS $k => $v ) {
$noprop->NewElement( $v );
$reply->NSElement($noprop, $v);
}
$elements[] = new XMLElement( 'propstat', array( $noprop, $status) );
}
@ -1220,7 +1220,7 @@ EOQRY;
$status = new XMLElement('status', 'HTTP/1.1 404 Not Found' );
$noprop = new XMLElement('prop');
foreach( $not_found AS $k => $v ) {
$noprop->NewElement( $v );
$reply->NSElement($noprop, $v);
}
$elements[] = new XMLElement( 'propstat', array( $noprop, $status) );
}