From a611ce4f3327fda869884415c76c3dd64345e2c2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= <schiessle@owncloud.com>
Date: Thu, 4 Oct 2012 17:18:21 +0200
Subject: [PATCH] baseDir has to be the whole path to work with shared
 directories below the root directory.

---
 apps/files_sharing/public.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 59755fe693..aa074e629d 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';
-- 
GitLab