From 7f6a037b8c9a0934fe20dde8260e9c4613472c50 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Sun, 19 Aug 2012 06:15:33 +0200
Subject: [PATCH] small fix for normalizing paths in archives

---
 apps/files_archive/lib/storage.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_archive/lib/storage.php b/apps/files_archive/lib/storage.php
index a3271dc390..855e0a705c 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){
-- 
GitLab