summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-06 14:33:47 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-06 14:33:47 -0400
commit83117445ace3fbb1562afbad56fc4527b453d4e5 (patch)
treef3bed2e24b32500f46bd2f0b665d0ba2d6885131 /apps/files_sharing
parente954de60309cca9f8e56aa666b31dd3314ff6fff (diff)
downloadnextcloud-server-83117445ace3fbb1562afbad56fc4527b453d4e5.tar.gz
nextcloud-server-83117445ace3fbb1562afbad56fc4527b453d4e5.zip
Fix offset for folder detection, no longer including '/Shared' in file target path
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/sharedstorage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php
index 6e37837aac9..ca811a16fef 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);