Project

General

Profile

Feature #15640 » bug-2585-v2.diff

Administrator Admin, 2006-12-12 15:18

View differences:

class.em_xmlhandler.php (working copy)
function searchExtensionsXML($search, $owner='', $order = '', $allExt = false, $allVer = false, $offset = 0, $limit = 500) {
$where = '1=1';
if ($search) {
$where .= ' AND extkey LIKE \'%'.$GLOBALS['TYPO3_DB']->quoteStr($GLOBALS['TYPO3_DB']->escapeStrForLike($search, 'cache_extensions'), 'cache_extensions').'%\'';
$searchSQL = '\'%'.$GLOBALS['TYPO3_DB']->quoteStr($GLOBALS['TYPO3_DB']->escapeStrForLike($search, 'cache_extensions'), 'cache_extensions').'%\'';
$where .= ' AND (extkey LIKE '.$searchSQL.' OR title LIKE '.$searchSQL.' OR description LIKE '.$searchSQL.' OR authorname LIKE '.$searchSQL.' OR authorcompany LIKE '.$searchSQL.')';
}
if ($owner) {
$where .= ' AND ownerusername='.$GLOBALS['TYPO3_DB']->fullQuoteStr($owner, 'cache_extensions');
(2-2/2)