diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-04-03 22:02:05 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-04-03 22:02:05 +0200 |
commit | bf7624fb255b7af534f5d6a740dd6dc9799cfc63 (patch) | |
tree | 8c61f56b8df1cd8118c92948a4432276efbfb4c3 /apps/files_trashbin/ajax/preview.php | |
parent | 388142ecc6a3b1382858619e0fea6145c506ab5e (diff) | |
parent | d1e78d7a6b7ff074bb972e0840ca8cdfe2403000 (diff) | |
download | nextcloud-server-bf7624fb255b7af534f5d6a740dd6dc9799cfc63.tar.gz nextcloud-server-bf7624fb255b7af534f5d6a740dd6dc9799cfc63.zip |
Merge pull request #6968 from owncloud/files-ajaxload
Ajaxify files list for files + trashbin + public page
Diffstat (limited to 'apps/files_trashbin/ajax/preview.php')
-rw-r--r-- | apps/files_trashbin/ajax/preview.php | 2 |
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'] === '.') { |