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

Oliver Hader oliver at typo3.org
Mon Sep 29 11:47:26 CEST 2008


The first patch was created from the Hackontest branch and was wrong. I 
attached the correct one...

olly


Oliver Hader schrieb:
> 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 4.3 Release Manager
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009442_v2.patch
Type: text/x-diff
Size: 833 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080929/29d2f772/attachment.patch 


More information about the TYPO3-team-core mailing list