From 83117445ace3fbb1562afbad56fc4527b453d4e5 Mon Sep 17 00:00:00 2001
From: Michael Gapczynski <mtgap@owncloud.com>
Date: Mon, 6 Aug 2012 14:33:47 -0400
Subject: [PATCH] Fix offset for folder detection, no longer including
 '/Shared' in file target path

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

diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php
index 6e37837aac..ca811a16fe 100644
--- a/apps/files_sharing/sharedstorage.php
+++ b/apps/files_sharing/sharedstorage.php
@@ -43,7 +43,7 @@ class OC_Filestorage_Shared extends OC_Filestorage_Common {
 		if (isset($this->files[$target])) {
 			return $this->files[$target];
 		} else {
-			$pos = strpos($target, '/', 8);
+			$pos = strpos($target, '/', 1);
 			// Get shared folder name
 			if ($pos !== false) {
 				$folder = substr($target, 0, $pos);
-- 
GitLab