Bug #19385 ยป 0009442_v2.patch

Administrator Admin, 2008-09-29 11:47

View differences:

t3lib/class.t3lib_db.php (Arbeitskopie)
503 503
	 * @return	string		WHERE clause for a query
504 504
	 */
505 505
	function listQuery($field, $value, $table)	{
506
		$command = $this->quoteStr($value, $table);
507
		$where = '('.$field.' LIKE \'%,'.$command.',%\' OR '.$field.' LIKE \''.$command.',%\' OR '.$field.' LIKE \'%,'.$command.'\' OR '.$field.'=\''.$command.'\')';
506
		$pattern = $this->quoteStr($value, $table);
507
		$patternForLike = $this->escapeStrForLike($pattern, $table);
508
		$where = '('.$field.' LIKE \'%,'.$patternForLike.',%\' OR '.$field.' LIKE \''.$patternForLike.',%\' OR '.$field.' LIKE \'%,'.$patternForLike.'\' OR '.$field.'=\''.$pattern.'\')';
508 509
		return $where;
509 510
	}
510 511

  
    (1-1/1)