mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
Merge pull request #3842 from nextcloud/no-empty-wildcard-search-11
[11] dont allow empty wildcard search
This commit is contained in:
commit
e44f6e9235
1 changed files with 4 additions and 0 deletions
|
|
@ -588,6 +588,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