Browse Source

Merge pull request #3828 from nextcloud/no-no-empty-wildcard-search

dont allow empty wildcard search
tags/v12.0.0beta1
Lukas Reschke 7 years ago
parent
commit
af16416de5
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      lib/private/Files/Cache/Cache.php

+ 4
- 0
lib/private/Files/Cache/Cache.php 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`,

Loading…
Cancel
Save