From a9a27306dea1e7e78945c05ac92e8e941dd4e271 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= <schiessle@owncloud.com>
Date: Wed, 24 Oct 2012 13:10:30 +0200
Subject: [PATCH] fix copy&paste bug from previous commit

---
 apps/files_sharing/public.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index a8813085d09..5f74c8e5266 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -49,7 +49,7 @@ if (isset($_GET['file']) || isset($_GET['dir'])) {
 		$dir = $baseDir;
 	} else {
 		$type = 'file';
-		$path = $_GET['dir'];
+		$path = $_GET['file'];
 		if(strlen($path)>1 and substr($path, -1, 1)==='/') {
 			$path=substr($path, 0, -1);
 		}
-- 
GitLab