From a80e0403a15af4d68123d0662f80e044afc4cada Mon Sep 17 00:00:00 2001
From: Bart Visscher <bartv@thisnet.nl>
Date: Mon, 24 Sep 2012 20:39:20 +0200
Subject: [PATCH] Fix getting individual shared file information

---
 lib/files.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/files.php b/lib/files.php
index 360614caec..052d798805 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -47,7 +47,8 @@ class OC_Files {
 				$info = OCP\Share::getItemsSharedWith('file', OC_Share_Backend_File::FORMAT_FILE_APP_ROOT);
 			}
 			else {
-				$info = OCP\Share::getItemSharedWith('file', '/'.$name, OC_Share_Backend_File::FORMAT_FILE_APP);
+				$path = substr($path, 7);
+				$info = OCP\Share::getItemSharedWith('file', $path, OC_Share_Backend_File::FORMAT_FILE_APP);
 			}
 			$info = $info[0];
 		}
-- 
GitLab