[Typo3-dev] quoting for SQL-like

Karsten Dambekalns karsten at typo3.org
Wed Apr 13 19:24:15 CEST 2005


Hi.

Martin Kutschker wrote:
> t3lib_db->listQuery and searchQuery use quoteStr to build the query,
> which is fine. But what's missing is the quoting for the like operators
> % and _.
> 
> This has to be done within these functions as the call to quoteStr would
> add too many backslashes when the input strings are like-escaped.

Could you supply a test case or some way to reproduce this?

Thanks,
Karsten
-- 
Karsten Dambekalns
TYPO3 Association - Active Member
http://association.typo3.org/




More information about the TYPO3-dev mailing list