Merge pull request #3828 from nextcloud/no-no-empty-wildcard-search
dont allow empty wildcard search
This commit is contained in:
commit
af16416de5
|
@ -594,6 +594,10 @@ class Cache implements ICache {
|
|||
// normalize pattern
|
||||
$pattern = $this->normalize($pattern);
|
||||
|
||||
if ($pattern === '%%') {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
$sql = '
|
||||
SELECT `fileid`, `storage`, `path`, `parent`, `name`,
|
||||
|
|
Loading…
Reference in New Issue