aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_archive
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-08-19 06:15:33 +0200
committerRobin Appelman <icewind@owncloud.com>2012-08-19 06:15:33 +0200
commit7f6a037b8c9a0934fe20dde8260e9c4613472c50 (patch)
tree3518d041dbdd7b6d051f4545c74a2b8e3965d52a /apps/files_archive
parent50cc5d5921f254086cf0e6a62d881419754bcf57 (diff)
downloadnextcloud-server-7f6a037b8c9a0934fe20dde8260e9c4613472c50.tar.gz
nextcloud-server-7f6a037b8c9a0934fe20dde8260e9c4613472c50.zip
small fix for normalizing paths in archives
Diffstat (limited to 'apps/files_archive')
-rw-r--r--apps/files_archive/lib/storage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_archive/lib/storage.php b/apps/files_archive/lib/storage.php
index a3271dc390f..855e0a705c8 100644
--- a/apps/files_archive/lib/storage.php
+++ b/apps/files_archive/lib/storage.php
@@ -38,10 +38,10 @@ class OC_Filestorage_Archive extends OC_Filestorage_Common{
return $this->archive->remove($path.'/');
}
public function opendir($path){
- $path=$this->stripPath($path);
if(substr($path,-1)!=='/'){
$path.='/';
}
+ $path=$this->stripPath($path);
$files=$this->archive->getFolder($path);
$content=array();
foreach($files as $file){