Project

General

Profile

Bug #21471 » bug_12482.diff

Administrator Admin, 2009-11-05 17:17

View differences:

typo3/mod/tools/em/class.em_xmlhandler.php (working copy)
if ($search && $exactMatch) {
$where.= ' AND extkey=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($search, 'cache_extensions');
} elseif($search) {
$where.= ' AND extkey LIKE \'%'.$GLOBALS['TYPO3_DB']->quoteStr($GLOBALS['TYPO3_DB']->escapeStrForLike($search, 'cache_extensions'), 'cache_extensions').'%\'';
$quotedSearch = $GLOBALS['TYPO3_DB']->quoteStr(
$GLOBALS['TYPO3_DB']->escapeStrForLike($search, 'cache_extensions'),
'cache_extensions'
);
$where .= ' AND (extkey LIKE \'%' . $quotedSearch . '%\' OR title LIKE \'%' . $quotedSearch . '%\')';
}
if ($owner) {
$where.= ' AND ownerusername='.$GLOBALS['TYPO3_DB']->fullQuoteStr($owner, 'cache_extensions');
(3-3/3)