From b4c095cb3e3df573cba09a524b16377258a740d0 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Mon, 28 Aug 2006 21:15:05 +0000 Subject: [PATCH] -forgot list items git-svn-id: file:///svn/phpbb/trunk@6325 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/search.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpBB/search.php b/phpBB/search.php index e949cf3ce4..ae3d9b73a3 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -770,10 +770,14 @@ if ($keywords || $author || $author_id || $search_id || $submit) $row['post_subject'] = censor_text($row['post_subject']); $message = $row['post_text']; - if (($return_chars != -1) && (strlen($message) >= $return_chars + 3)) { $message = censor_text($message); + + // make list items visible as such + $message = str_replace('[*:' . $row['bbcode_uid'] . ']', '⋅ ', $message); + + // do not display raw bbcode strip_bbcode($message, $row['bbcode_uid']); // now find context for the searched words