dont allow empty wildcard search

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2017-03-13 16:06:19 +01:00
parent c1cf872f1d
commit 6d0c756ff9
No known key found for this signature in database
GPG key ID: CBCA68FBAEBF98C9

View file

@ -594,6 +594,10 @@ class Cache implements ICache {
// normalize pattern
$pattern = $this->normalize($pattern);
if ($pattern === '%%') {
return [];
}
$sql = '
SELECT `fileid`, `storage`, `path`, `parent`, `name`,