From f82946c6a9dfc394aa725f24dfc236a5fc2db605 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail.com>
Date: Mon, 18 Apr 2011 09:25:50 +0200
Subject: [PATCH] pass the user to setupFS

---
 plugins/publiclink/lib_public.php | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/plugins/publiclink/lib_public.php b/plugins/publiclink/lib_public.php
index 494f84fdb7..7c25c938fd 100644
--- a/plugins/publiclink/lib_public.php
+++ b/plugins/publiclink/lib_public.php
@@ -38,11 +38,8 @@ class OC_PublicLink{
 			$path=$data[0]['path'];
 			$user=$data[0]['user'];
 			
-			//login
-			$_SESSION['user_id']=$user;
-			
 			//prepare the filesystem
-			OC_UTIL::setupFS();
+			OC_UTIL::setupFS($user);
 			
 			//get time mimetype and set the headers
 			$mimetype=OC_FILESYSTEM::getMimeType($path);
-- 
GitLab