diff options
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/bbcode.php | 1 | ||||
-rw-r--r-- | phpBB/search.php | 6 | ||||
-rw-r--r-- | phpBB/viewtopic.php | 5 |
3 files changed, 8 insertions, 4 deletions
diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php index eb301fe6cd..22dbd79b91 100644 --- a/phpBB/includes/bbcode.php +++ b/phpBB/includes/bbcode.php @@ -578,6 +578,7 @@ function bbencode_second_pass_code($text, $uid, $bbcode_tpl) */ function make_clickable($text) { + // pad it with a space so we can match things at the start of the 1st line. $ret = " " . $text; diff --git a/phpBB/search.php b/phpBB/search.php index 788d930765..39125e3310 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -909,7 +909,7 @@ else if( $query_keywords != "" || $query_author != "" || $search_id ) $user_sig = $searchset[$i]['user_sig']; $user_sig_bbcode_uid = $searchset[$i]['user_sig_bbcode_uid']; - $message = make_clickable($message); + if( count($search_string) ) { @@ -941,8 +941,10 @@ else if( $query_keywords != "" || $query_author != "" || $search_id ) if( $searchset[$i]['enable_sig'] ) { - $message .= "<br /><br />_________________<br />" . make_clickable($user_sig); + $message .= "<br /><br />_________________<br />" . $user_sig; } + + $message = make_clickable($message); } if( count($orig_word) ) diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 9116812e3c..dabff8a987 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -937,7 +937,6 @@ for($i = 0; $i < $total_posts; $i++) // important, moving things around could break any // output // - $message = make_clickable($message); // // Highlight active words (primarily for search) @@ -985,9 +984,11 @@ for($i = 0; $i < $total_posts; $i++) // if( $postrow[$i]['enable_sig'] && $user_sig != "" ) { - $message .= "<br /><br />_________________<br />" . make_clickable($user_sig); + $message .= "<br /><br />_________________<br />" . $user_sig; } + $message = make_clickable($message); + // // Replace naughty words // |