mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-19 01:34:26 +00:00
Reply to denied/notfound properties with a namespace-aliased response.
This commit is contained in:
parent
f33de018f3
commit
67c8be1f2a
@ -1211,7 +1211,7 @@ EOQRY;
|
|||||||
$status = new XMLElement('status', 'HTTP/1.1 403 Forbidden' );
|
$status = new XMLElement('status', 'HTTP/1.1 403 Forbidden' );
|
||||||
$noprop = new XMLElement('prop');
|
$noprop = new XMLElement('prop');
|
||||||
foreach( $denied AS $k => $v ) {
|
foreach( $denied AS $k => $v ) {
|
||||||
$noprop->NewElement( $v );
|
$reply->NSElement($noprop, $v);
|
||||||
}
|
}
|
||||||
$elements[] = new XMLElement( 'propstat', array( $noprop, $status) );
|
$elements[] = new XMLElement( 'propstat', array( $noprop, $status) );
|
||||||
}
|
}
|
||||||
@ -1220,7 +1220,7 @@ EOQRY;
|
|||||||
$status = new XMLElement('status', 'HTTP/1.1 404 Not Found' );
|
$status = new XMLElement('status', 'HTTP/1.1 404 Not Found' );
|
||||||
$noprop = new XMLElement('prop');
|
$noprop = new XMLElement('prop');
|
||||||
foreach( $not_found AS $k => $v ) {
|
foreach( $not_found AS $k => $v ) {
|
||||||
$noprop->NewElement( $v );
|
$reply->NSElement($noprop, $v);
|
||||||
}
|
}
|
||||||
$elements[] = new XMLElement( 'propstat', array( $noprop, $status) );
|
$elements[] = new XMLElement( 'propstat', array( $noprop, $status) );
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user