diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-01-12 19:33:00 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-01-12 19:33:00 +0100 |
commit | fcc3b3d5f70eb44787a70dd17b5a843729b1f0d8 (patch) | |
tree | defc94c8fe75bdc7219b32f70d180a1ddc21f47f /lib/private | |
parent | 331d73c3a37e74f1e322b9bfb239940275422a65 (diff) | |
download | nextcloud-server-fcc3b3d5f70eb44787a70dd17b5a843729b1f0d8.tar.gz nextcloud-server-fcc3b3d5f70eb44787a70dd17b5a843729b1f0d8.zip |
Fix searchCommon to properly match path name
The internal path was matched without the last "/" which caused
"files_trashbin" to also match when the internal path was "files".
This adds the missing slash for the comparison.
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/files/node/folder.php | 1 |
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(''); |