[BUGFIX] Allow multi-byte characters in live search 97/55997/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:20:59 +0000 (09:20 +0100)
Resolves: #83539
Releases: master, 8.7
Change-Id: I4d589d0654ab7ee091b664957fbb8c6d101be663
Reviewed-on: https://review.typo3.org/55997
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Guido Schmechel <littlegee@web.de>
Tested-by: Guido Schmechel <littlegee@web.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@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 54f8636..7433b60 100644 (file)
@@ -365,7 +365,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)
                     )
                 );