summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-02-11 11:38:52 +0100
committerRobin Appelman <icewind@owncloud.com>2013-02-11 11:38:52 +0100
commit762688762f0b4536087d8d6e8bd8d1c9562f00d1 (patch)
tree692d5c71debfe7c60a9b0a55a33614d96ad94362 /apps
parentd0a005ea979f7f6ddc6ed28b8b346878ce3f41b9 (diff)
downloadnextcloud-server-762688762f0b4536087d8d6e8bd8d1c9562f00d1.tar.gz
nextcloud-server-762688762f0b4536087d8d6e8bd8d1c9562f00d1.zip
Share: fix downloading files from a public shared folder
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 2862ad510ee..04dcbd680e3 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -92,7 +92,7 @@ if (isset($path)) {
}
}
$basePath = $path;
- if (isset($_GET['path']) && \OC\Files\Filesystem::isReadable($_GET['path'])) {
+ if (isset($_GET['path']) && \OC\Files\Filesystem::isReadable($basePath . $_GET['path'])) {
$getPath = \OC\Files\Filesystem::normalizePath($_GET['path']);
$path .= $getPath;
} else {