mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Reply to denied/notfound properties with a namespace-aliased response.
This commit is contained in:
1 parent
f33de018f3
commit
67c8be1f2a
1 file changed
+2
-2
+2
-2
@@ -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) );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user