return fixed path, skip shared files outside of 'files'
This commit is contained in:
parent
27511d9187
commit
392c6b6832
|
@ -254,9 +254,12 @@ class Shared_Cache extends Cache {
|
|||
$result = \OC_DB::executeAudited($sql, array_merge(array($pattern), $chunk));
|
||||
|
||||
while ($row = $result->fetchRow()) {
|
||||
if (substr($row['path'], 0, 6)==='files/') {
|
||||
$row['path'] = substr($row['path'],6); // remove 'files/' from path as it's relative to '/Shared'
|
||||
$row['mimetype'] = $this->getMimetype($row['mimetype']);
|
||||
$row['mimepart'] = $this->getMimetype($row['mimepart']);
|
||||
$files[] = $row;
|
||||
} // else skip results out of the files folder
|
||||
}
|
||||
}
|
||||
return $files;
|
||||
|
|
Loading…
Reference in New Issue