summaryrefslogtreecommitdiffstats
path: root/webdav
diff options
context:
space:
mode:
authorRobin <robin@Amaya.(none)>2010-05-02 14:04:08 +0200
committerRobin <robin@Amaya.(none)>2010-05-02 14:04:08 +0200
commit15b284578e8e2ec0c38439a02a554921aa13786d (patch)
treee9062f25a8df3fb9fb98c33adc17e554836b7878 /webdav
parent0732264d67bda45c9c74f835d1f182adcd2f2ce7 (diff)
downloadnextcloud-server-15b284578e8e2ec0c38439a02a554921aa13786d.tar.gz
nextcloud-server-15b284578e8e2ec0c38439a02a554921aa13786d.zip
fix webdav when not using the default data directory
Diffstat (limited to 'webdav')
-rwxr-xr-xwebdav/owncloud.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/webdav/owncloud.php b/webdav/owncloud.php
index 504503b58cc..289105a4f1a 100755
--- a/webdav/owncloud.php
+++ b/webdav/owncloud.php
@@ -39,7 +39,7 @@ if(empty($_SERVER['PHP_AUTH_USER']) && empty($_SERVER['REDIRECT_REMOTE_USER']))
$user=$_SERVER['PHP_AUTH_USER'];
$passwd=$_SERVER['PHP_AUTH_PW'];
if(OC_USER::login($user,$passwd)){
- $CONFIG_DATADIRECTORY=$SERVERROOT.'/data/'.$_SESSION['username_clean'];
+ $CONFIG_DATADIRECTORY=$CONFIG_DATADIRECTORY_ROOT.'/'.$_SESSION['username_clean'];
if(!is_dir($CONFIG_DATADIRECTORY)){
mkdir($CONFIG_DATADIRECTORY);
}