summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/public.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/public.php')
-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 a8813085d09..5f74c8e5266 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -49,7 +49,7 @@ if (isset($_GET['file']) || isset($_GET['dir'])) {
$dir = $baseDir;
} else {
$type = 'file';
- $path = $_GET['dir'];
+ $path = $_GET['file'];
if(strlen($path)>1 and substr($path, -1, 1)==='/') {
$path=substr($path, 0, -1);
}