summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2011-08-06 23:19:40 +0200
committerFrank Karlitschek <karlitschek@kde.org>2011-08-06 23:19:40 +0200
commita689fa18dfb66226527499ea707b2ff517561851 (patch)
tree4c47cbcfbdb46b4f00d50893fc07794670b864e6 /lib
parentb513a6054036455605d96f1d1827e156b2127ce3 (diff)
parent6d5402247c9a2d6cf5f8e716d9ab99d688e07038 (diff)
downloadnextcloud-server-a689fa18dfb66226527499ea707b2ff517561851.tar.gz
nextcloud-server-a689fa18dfb66226527499ea707b2ff517561851.zip
Merge branch 'master' of git.kde.org:owncloud
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php10
-rw-r--r--lib/connector/sabre/principal.php4
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/base.php b/lib/base.php
index 520c12d4df1..d02f63a2766 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -35,23 +35,23 @@ class OC{
*/
public static $DOCUMENTROOT = '';
/**
- * TODO: What's this for?
+ * The installation path for owncloud on the server (e.g. /srv/http/owncloud)
*/
public static $SERVERROOT = '';
/**
- * TODO: What's this for?
+ * the current request path relative to the owncloud root (e.g. files/index.php)
*/
public static $SUBURI = '';
/**
- * TODO: What's this for?
+ * the owncloud root path for http requests (e.g. owncloud/)
*/
public static $WEBROOT = '';
/**
- * TODO: What's this for?
+ * the folder that stores that data files for the filesystem of the user (e.g. /srv/http/owncloud/data/myusername/files)
*/
public static $CONFIG_DATADIRECTORY = '';
/**
- * TODO: What's this for?
+ * the folder that stores the data for the root filesystem (e.g. /srv/http/owncloud/data)
*/
public static $CONFIG_DATADIRECTORY_ROOT = '';
diff --git a/lib/connector/sabre/principal.php b/lib/connector/sabre/principal.php
index b3070087fd7..9c386f85e15 100644
--- a/lib/connector/sabre/principal.php
+++ b/lib/connector/sabre/principal.php
@@ -37,8 +37,8 @@ class OC_Connector_Sabre_Principal implements Sabre_DAVACL_IPrincipalBackend {
// We have to delete the principals and relations! Principals include
while($row = $result->fetchRow()){
// Checking if the principal is in the prefix
- list($rowPrefix,$rowUser) = Sabre_DAV_URLUtil::splitPath($row['uri']);
- if ($rowUser !== $params['uid']) continue;
+ $array = explode('/',$row['uri']);
+ if ($array[1] != $params['uid']) continue;
$deleteprincipal->execute(array($row['id']));
$deletegroup->execute(array($row['id'],$row['id']));
}