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

dont allow empty wildcard search
This commit is contained in:
Lukas Reschke 2017-03-13 19:28:00 +01:00 committed by GitHub
commit af16416de5
1 changed files with 4 additions and 0 deletions

View File

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