From a5d6e6eb282f2947410c54f22aad1b7308f2558a Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 21 Oct 2014 16:20:28 +0200 Subject: if it is not a folder share the path already points to the correct file --- apps/files_sharing/public.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index ea84400f103..2b84cd3cc3c 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -90,7 +90,7 @@ if (isset($path)) { } $basePath = $path; $rootName = basename($path); - if (isset($_GET['path']) && \OC\Files\Filesystem::isReadable($basePath . $_GET['path'])) { + if ($linkItem['item_type'] === 'folder' && isset($_GET['path']) && \OC\Files\Filesystem::isReadable($basePath . $_GET['path'])) { $getPath = \OC\Files\Filesystem::normalizePath($_GET['path']); $path .= $getPath; } else { -- cgit v1.2.3