diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-08 13:17:26 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-08 13:17:26 +0200 |
commit | 2fda4e38e21f1dc0fffdc17dfd2dce1ee67da243 (patch) | |
tree | b35241a21230ca27c7dc9ab705fe087a8a074b26 /lib | |
parent | 8d2c8cf2a262d6299932125872fb0d536881a058 (diff) | |
parent | c2d76d201075733a89d5167faf1091e589249a77 (diff) | |
download | nextcloud-server-2fda4e38e21f1dc0fffdc17dfd2dce1ee67da243.tar.gz nextcloud-server-2fda4e38e21f1dc0fffdc17dfd2dce1ee67da243.zip |
Merge pull request #19546 from owncloud/fix-search-for-node-api
Fix search operations for the Node API
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/node/folder.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/files/node/folder.php b/lib/private/files/node/folder.php index 23004fc3527..9032c2bfb9d 100644 --- a/lib/private/files/node/folder.php +++ b/lib/private/files/node/folder.php @@ -215,7 +215,10 @@ 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, '/') . '/'; + $internalPath = rtrim($internalPath, '/'); + if ($internalPath !== '') { + $internalPath = $internalPath . '/'; + } $internalRootLength = strlen($internalPath); $cache = $storage->getCache(''); |