summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/ajax
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-11-29 16:43:50 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2013-11-29 16:43:50 +0100
commit71589e65d24657a6d61fc22b3c67d5a1f5b1404a (patch)
tree6ed29943a9b589b80841282d2a8a254c02ec033d /apps/files_trashbin/ajax
parent41a1a32e5ad19c041e22b20873e769ecfa6aa8c8 (diff)
downloadnextcloud-server-71589e65d24657a6d61fc22b3c67d5a1f5b1404a.tar.gz
nextcloud-server-71589e65d24657a6d61fc22b3c67d5a1f5b1404a.zip
fix restore from files in sub-folders
Diffstat (limited to 'apps/files_trashbin/ajax')
-rw-r--r--apps/files_trashbin/ajax/undelete.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_trashbin/ajax/undelete.php b/apps/files_trashbin/ajax/undelete.php
index e39004cc0d5..876ad269a70 100644
--- a/apps/files_trashbin/ajax/undelete.php
+++ b/apps/files_trashbin/ajax/undelete.php
@@ -13,6 +13,7 @@ $success = array();
$i = 0;
foreach ($list as $file) {
if ( $dirlisting === '0') {
+ $file = ltrim($file, '/');
$delimiter = strrpos($file, '.d');
$filename = substr($file, 0, $delimiter);
$timestamp = substr($file, $delimiter+2);