Browse Source

dont allow empty wildcard search

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/3828/head
Robin Appelman 9 years ago
parent
commit
6d0c756ff9
No known key found for this signature in database GPG Key ID: CBCA68FBAEBF98C9
  1. 4
      lib/private/Files/Cache/Cache.php

4
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`,

Loading…
Cancel
Save