We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f45c31c commit da43022Copy full SHA for da43022
src/AppBundle/Controller/BlogController.php
@@ -167,9 +167,9 @@ public function searchAction(Request $request)
167
168
// Splits the query into terms and removes all terms which
169
// length is less than 2
170
- $terms = array_unique(explode(' ', strtolower($query)));
+ $terms = array_unique(explode(' ', mb_strtolower($query)));
171
$terms = array_filter($terms, function ($term) {
172
- return 2 <= strlen($term);
+ return 2 <= mb_strlen($term);
173
});
174
175
$posts = [];
0 commit comments