Merge pull request #3842 from nextcloud/no-empty-wildcard-search-11

[11] dont allow empty wildcard search
This commit is contained in:
Morris Jobke 2017-03-14 23:09:19 -06:00 committed by GitHub
commit e44f6e9235
1 changed files with 4 additions and 0 deletions

View File

@ -588,6 +588,10 @@ class Cache implements ICache {
// normalize pattern
$pattern = $this->normalize($pattern);
if ($pattern === '%%') {
return [];
}
$sql = '
SELECT `fileid`, `storage`, `path`, `parent`, `name`,