summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2012-10-04 17:18:21 +0200
committerBjörn Schießle <schiessle@owncloud.com>2012-10-05 10:32:38 +0200
commita611ce4f3327fda869884415c76c3dd64345e2c2 (patch)
treeb3da5cc27178be82ce8fc8e1521b2f24d1f1a527 /apps
parentb88a61c63341d11bc709085852fb44a621e3119c (diff)
downloadnextcloud-server-a611ce4f3327fda869884415c76c3dd64345e2c2.tar.gz
nextcloud-server-a611ce4f3327fda869884415c76c3dd64345e2c2.zip
baseDir has to be the whole path to work with shared directories below the root directory.
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/public.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 59755fe6938..aa074e629da 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -25,7 +25,7 @@ if (isset($_GET['file']) || isset($_GET['dir'])) {
if (isset($_GET['dir'])) {
$type = 'folder';
$path = $_GET['dir'];
- $baseDir = basename($path);
+ $baseDir = $path;
$dir = $baseDir;
} else {
$type = 'file';