[TYPO3-core] RFC: Bug #9442: SQL LIKE wildcards are not escaped correctly for list queries

Oliver Hader oliver at typo3.org
Sun Sep 28 20:27:15 CEST 2008


This is a SVN patch request.

Problem:
Using t3lib_db::listQuery('some_Tag') - and knowing that "_" and "%" are
wildcard characters in SQL LIKE statements - will produce wrong result sets.

Solution:
Escape "%" and "_" correctly when they are used in a LIKE statement.

Bugtracker references:
http://bugs.typo3.org/view.php?id=9442

Branches: TYPO3_4-2, Trunk

olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0009442.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080928/53e221ba/attachment.txt 


More information about the TYPO3-team-core mailing list