summaryrefslogtreecommitdiffstats
path: root/3rdparty/Sabre/DAVACL/Property/Acl.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-10-13 22:03:44 +0200
committerLukas Reschke <lukas@statuscode.ch>2012-10-13 22:04:22 +0200
commit183cc22501b75ab8819971f70b88dbc010026ac1 (patch)
tree878db72be46fe5394f8615c2bcf579d9e943d76b /3rdparty/Sabre/DAVACL/Property/Acl.php
parent5713dcfd11f6d0f57b6302bedeb22c18df5d73bb (diff)
downloadnextcloud-server-183cc22501b75ab8819971f70b88dbc010026ac1.tar.gz
nextcloud-server-183cc22501b75ab8819971f70b88dbc010026ac1.zip
Update SabreDAV to 1.7.1
Diffstat (limited to '3rdparty/Sabre/DAVACL/Property/Acl.php')
-rwxr-xr-x3rdparty/Sabre/DAVACL/Property/Acl.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/3rdparty/Sabre/DAVACL/Property/Acl.php b/3rdparty/Sabre/DAVACL/Property/Acl.php
index 05e1a690b3c..3f79a8d532e 100755
--- a/3rdparty/Sabre/DAVACL/Property/Acl.php
+++ b/3rdparty/Sabre/DAVACL/Property/Acl.php
@@ -88,11 +88,11 @@ class Sabre_DAVACL_Property_Acl extends Sabre_DAV_Property {
static public function unserialize(DOMElement $dom) {
$privileges = array();
- $xaces = $dom->getElementsByTagNameNS('urn:DAV','ace');
+ $xaces = $dom->getElementsByTagNameNS('DAV:','ace');
for($ii=0; $ii < $xaces->length; $ii++) {
$xace = $xaces->item($ii);
- $principal = $xace->getElementsByTagNameNS('urn:DAV','principal');
+ $principal = $xace->getElementsByTagNameNS('DAV:','principal');
if ($principal->length !== 1) {
throw new Sabre_DAV_Exception_BadRequest('Each {DAV:}ace element must have one {DAV:}principal element');
}
@@ -116,17 +116,17 @@ class Sabre_DAVACL_Property_Acl extends Sabre_DAV_Property {
$protected = false;
- if ($xace->getElementsByTagNameNS('urn:DAV','protected')->length > 0) {
+ if ($xace->getElementsByTagNameNS('DAV:','protected')->length > 0) {
$protected = true;
}
- $grants = $xace->getElementsByTagNameNS('urn:DAV','grant');
+ $grants = $xace->getElementsByTagNameNS('DAV:','grant');
if ($grants->length < 1) {
throw new Sabre_DAV_Exception_NotImplemented('Every {DAV:}ace element must have a {DAV:}grant element. {DAV:}deny is not yet supported');
}
$grant = $grants->item(0);
- $xprivs = $grant->getElementsByTagNameNS('urn:DAV','privilege');
+ $xprivs = $grant->getElementsByTagNameNS('DAV:','privilege');
for($jj=0; $jj<$xprivs->length; $jj++) {
$xpriv = $xprivs->item($jj);