diff options
Diffstat (limited to 'lib/Misc/Search.php')
-rw-r--r-- | lib/Misc/Search.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Misc/Search.php b/lib/Misc/Search.php index cdcf303..3ee11a0 100644 --- a/lib/Misc/Search.php +++ b/lib/Misc/Search.php @@ -149,7 +149,7 @@ private function search($relativePath, $folder, $query, $curDepth){ } catch(Exception $e){ } $index = $zipFile->getEntryContents("index.html"); - if(strstr(strtolower($this->removeAccents($index)), $query)){ + if(trim ($query) !== "" && strstr(strtolower($this->removeAccents($index)), $query)){ $this->writeFound($relativePath,$in); } } catch(\OCP\Files\NotFoundException $e) { |