Bug #19385 ยป 0009442_v2.patch
t3lib/class.t3lib_db.php (Arbeitskopie) | ||
---|---|---|
* @return string WHERE clause for a query
|
||
*/
|
||
function listQuery($field, $value, $table) {
|
||
$command = $this->quoteStr($value, $table);
|
||
$where = '('.$field.' LIKE \'%,'.$command.',%\' OR '.$field.' LIKE \''.$command.',%\' OR '.$field.' LIKE \'%,'.$command.'\' OR '.$field.'=\''.$command.'\')';
|
||
$pattern = $this->quoteStr($value, $table);
|
||
$patternForLike = $this->escapeStrForLike($pattern, $table);
|
||
$where = '('.$field.' LIKE \'%,'.$patternForLike.',%\' OR '.$field.' LIKE \''.$patternForLike.',%\' OR '.$field.' LIKE \'%,'.$patternForLike.'\' OR '.$field.'=\''.$pattern.'\')';
|
||
return $where;
|
||
}
|
||