Index: typo3/sysext/indexed_search/class.indexer.php =================================================================== --- typo3/sysext/indexed_search/class.indexer.php (revision 7213) +++ typo3/sysext/indexed_search/class.indexer.php (working copy) @@ -624,8 +624,12 @@ for($i=0;$this->embracingTags($headPart,'meta',$dummy,$headPart,$meta[$i]);$i++) { /*nothing*/ } for($i=0;isset($meta[$i]);$i++) { $meta[$i] = t3lib_div::get_tag_attributes($meta[$i]); - if(stristr($meta[$i]['name'],'keywords')) $contentArr['keywords'].=','.$meta[$i]['content']; - if(stristr($meta[$i]['name'],'description')) $contentArr['description'].=','.$meta[$i]['content']; + if (stristr($meta[$i]['name'], 'keywords')) { + $contentArr['keywords'] .= ',' . $this->addSpacesToKeywordList($meta[$i]['content']); + } + if (stristr($meta[$i]['name'], 'description')) { + $contentArr['description'] .= ',' . $meta[$i]['content']; + } } } @@ -2088,6 +2092,19 @@ require_once t3lib_extMgm::extPath('indexed_search') . 'hooks/class.tx_indexedsearch_tslib_fe_hook.php'; t3lib_div::makeInstance('tx_indexedsearch_tslib_fe_hook')->headerNoCache($params, $ref); } + + /** + * Makes sure that keywords are space-separated. This is impotant for their + * proper displaying as a part of fulltext index. + * + * @param string $keywordList + * @return string + * @see http://bugs.typo3.org/view.php?id=1436 + */ + protected function addSpacesToKeywordList($keywordList) { + $keywords = t3lib_div::trimExplode(',', $keywordList); + return ' ' . implode(', ', $keywords) . ' '; + } }