diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-08-19 08:15:33 +0400 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-08-19 08:15:33 +0400 |
commit | 2a2f3286eee1c73ba1ee540f8c05040becf3c820 (patch) | |
tree | d54aa6c2e84cd270ae942a084c6aa439b98c4d4f /files_archive | |
parent | 9f27c6fa0b5c9c5eb3ab35799386dae03af9e45c (diff) |
small fix for normalizing paths in archives
Diffstat (limited to 'files_archive')
-rw-r--r-- | files_archive/lib/storage.php | 2 |
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){ |