Fix offset for folder detection, no longer including '/Shared' in file target path

This commit is contained in:
Michael Gapczynski 2012-08-06 14:33:47 -04:00
parent e954de6030
commit 83117445ac

View file

@ -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);