[BUGFIX] Allow multi-byte characters in live search 08/56008/2
authorSven Burkert <sventb@gmail.com>
Sat, 3 Mar 2018 23:12:40 +0000 (00:12 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 5 Mar 2018 08:36:50 +0000 (09:36 +0100)
Resolves: #83539
Releases: master, 8.7
Change-Id: I4d589d0654ab7ee091b664957fbb8c6d101be663
Reviewed-on: https://review.typo3.org/56008
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Search/LiveSearch/LiveSearch.php

index 7c035a5..be4ee14 100644 (file)
@@ -363,7 +363,7 @@ class LiveSearch
                     $queryBuilder->expr()->comparison(
                         'LOWER(' . $queryBuilder->quoteIdentifier($fieldName) . ')',
                         'LIKE',
-                        $queryBuilder->createNamedParameter(strtolower($like), \PDO::PARAM_STR)
+                        $queryBuilder->createNamedParameter(mb_strtolower($like), \PDO::PARAM_STR)
                     )
                 );