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