Project

General

Profile

Bug #15985 ยป bug_3132.diff

Administrator Admin, 2006-04-05 16:53

View differences:

typo3_src-4.0rc3/typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php 2006-04-05 00:52:11.000000000 +0200
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'index_fulltext', 'phash='.intval($row['phash']));
if ($ftdrow = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
// Cut HTTP references after some length
$content = preg_replace('/(http:\/\/[^\?]+)\?[^[:blank:]]*/i', '$1?...', $ftdrow['fulltextdata']);
$content = preg_replace('/(http:\/\/[^ ]{60})([^ ]+)/i', '$1...', $ftdrow['fulltextdata']);
$markedSW = $this->markupSWpartsOfString($content);
}
$GLOBALS['TYPO3_DB']->sql_free_result($res);
    (1-1/1)