mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #3828 from nextcloud/no-no-empty-wildcard-search
dont allow empty wildcard search
This commit is contained in:
commit
af16416de5
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue