[!!!][BUGFIX] Indexed Search: Escape search strings for LIKE queries 69/42969/13
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Tue, 1 Sep 2015 19:22:31 +0000 (21:22 +0200)
committerBenni Mack <benni@typo3.org>
Tue, 29 Sep 2015 12:53:38 +0000 (14:53 +0200)
commit5f879e2655c618593c5d1a02331c68fbe599726b
tree52879960e42b72189caae0857680e27af1821700
parentca7f2c47be620436e4c16e762d9d99e10e9c149b
[!!!][BUGFIX] Indexed Search: Escape search strings for LIKE queries

LIKE queries support special placeholders (_ and %).
These characters need proper escaping before being used
in database queries. Use the escapeStrForLike() method to
provide properly escaped strings to the query.

This patch handles few places missed by http://review.typo3.org/42806

Resolves: #69227
Releases: master
Change-Id: Ie68dd140aafa755be08ba9505b3ac33f00a8f2e2
Reviewed-on: http://review.typo3.org/42969
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Breaking-69227-StringsForLikeAreNotProperlyEscaped.rst [new file with mode: 0644]
typo3/sysext/indexed_search/Classes/Controller/SearchFormController.php
typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php
typo3/sysext/indexed_search/Classes/Utility/LikeWildcard.php [new file with mode: 0644]
typo3/sysext/indexed_search/Tests/Unit/Utility/LikeWildcardTest.php [new file with mode: 0644]