diff options
Diffstat (limited to 'phpBB/search.php')
-rw-r--r-- | phpBB/search.php | 6 |
1 files changed, 5 insertions, 1 deletions
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 |