Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-08-19 08:15:33 +0400
committerRobin Appelman <icewind@owncloud.com>2012-08-19 08:15:33 +0400
commit2a2f3286eee1c73ba1ee540f8c05040becf3c820 (patch)
treed54aa6c2e84cd270ae942a084c6aa439b98c4d4f /files_archive
parent9f27c6fa0b5c9c5eb3ab35799386dae03af9e45c (diff)
small fix for normalizing paths in archives
Diffstat (limited to 'files_archive')
-rw-r--r--files_archive/lib/storage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/files_archive/lib/storage.php b/files_archive/lib/storage.php
index a3271dc39..855e0a705 100644
--- a/files_archive/lib/storage.php
+++ b/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){