Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Misc/Search.php')
-rw-r--r--lib/Misc/Search.php2
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) {