Browse Source
dont allow empty wildcard search
Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/3828/head
Robin Appelman
9 years ago
No known key found for this signature in database
GPG Key ID: CBCA68FBAEBF98C9
1 changed files with
4 additions and
0 deletions
-
lib/private/Files/Cache/Cache.php
|
|
|
@ -594,6 +594,10 @@ class Cache implements ICache { |
|
|
|
// normalize pattern
|
|
|
|
$pattern = $this->normalize($pattern); |
|
|
|
|
|
|
|
if ($pattern === '%%') { |
|
|
|
return []; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$sql = ' |
|
|
|
SELECT `fileid`, `storage`, `path`, `parent`, `name`, |
|
|
|
|