summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/ajax/preview.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_trashbin/ajax/preview.php')
-rw-r--r--apps/files_trashbin/ajax/preview.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/ajax/preview.php b/apps/files_trashbin/ajax/preview.php
index ce64d9ecc9f..32905b2a71c 100644
--- a/apps/files_trashbin/ajax/preview.php
+++ b/apps/files_trashbin/ajax/preview.php
@@ -34,7 +34,7 @@ try{
if ($view->is_dir($file)) {
$mimetype = 'httpd/unix-directory';
} else {
- $pathInfo = pathinfo($file);
+ $pathInfo = pathinfo(ltrim($file, '/'));
$fileName = $pathInfo['basename'];
// if in root dir
if ($pathInfo['dirname'] === '.') {