diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-10-21 16:20:28 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-10-21 16:20:28 +0200 |
commit | a5d6e6eb282f2947410c54f22aad1b7308f2558a (patch) | |
tree | 9bcac8555df69e9dc40bd0a26b0317521cd038e9 /apps/files_sharing | |
parent | 098b4e9e81b076a5b374d39793027495b051b61f (diff) | |
download | nextcloud-server-a5d6e6eb282f2947410c54f22aad1b7308f2558a.tar.gz nextcloud-server-a5d6e6eb282f2947410c54f22aad1b7308f2558a.zip |
if it is not a folder share the path already points to the correct file
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/public.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |