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