[TYPO3-core] RFC: fix bug #990

Holzinger Franz franz at fholzinger.com
Thu Jan 5 10:23:36 CET 2006


Martin Kutschker a écrit :

>>    
>>
>>>$TYPO3_DB->escapeStrForLike($TYPO3_DB->quoteStr($val, $searchTable))
>>>
>>>      
>>>
>>in a loop, which is not necessary here.
>>
>>Call it right after the
>>$val = trim($val);
>>only once.
>>    
>>
>
>
>Commited, but called after the strlen check, because quoting and escaping may change the string length.
>
>  
>
+1

Regards,

Franz





More information about the TYPO3-team-core mailing list