summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-01-13 13:25:51 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-01-13 13:25:51 +0100
commit543fa0d45b23173ed94f4c865fe38855b1602ee4 (patch)
treecb3c327207329b617d6d0f07504c75e66082e107 /lib
parent6d73aff9ad44f81b65b6ddc74f06a59e562f971b (diff)
parentfcc3b3d5f70eb44787a70dd17b5a843729b1f0d8 (diff)
downloadnextcloud-server-543fa0d45b23173ed94f4c865fe38855b1602ee4.tar.gz
nextcloud-server-543fa0d45b23173ed94f4c865fe38855b1602ee4.zip
Merge pull request #13291 from owncloud/node-searchcommonbasepathfix
Fix searchCommon to properly match path name
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/node/folder.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/files/node/folder.php b/lib/private/files/node/folder.php
index bdfb2346716..5fd73cc5d36 100644
--- a/lib/private/files/node/folder.php
+++ b/lib/private/files/node/folder.php
@@ -259,6 +259,7 @@ class Folder extends Node implements \OCP\Files\Folder {
* @var \OC\Files\Storage\Storage $storage
*/
list($storage, $internalPath) = $this->view->resolvePath($this->path);
+ $internalPath = rtrim($internalPath, '/') . '/';
$internalRootLength = strlen($internalPath);
$cache = $storage->getCache('');