mirror of
https://github.com/nextcloud/server.git
synced 2026-03-21 18:11:02 -04:00
dont allow empty wildcard search
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
c1cf872f1d
commit
6d0c756ff9
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