mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Various posting updates
git-svn-id: file:///svn/phpbb/trunk@836 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -480,7 +480,6 @@ for($i = 0; $i < $total_posts; $i++)
|
||||
$user_sig = htmlspecialchars($user_sig);
|
||||
}
|
||||
$message = htmlspecialchars($message);
|
||||
// $message = str_replace('&', '&', $message);
|
||||
}
|
||||
|
||||
if($board_config['allow_bbcode'] && $bbcode_uid != "")
|
||||
@@ -493,6 +492,20 @@ for($i = 0; $i < $total_posts; $i++)
|
||||
}
|
||||
|
||||
$message = bbencode_second_pass($message, $bbcode_uid);
|
||||
|
||||
//
|
||||
// This compensates for bbcode's rather agressive (but I guess necessary)
|
||||
// HTML handling
|
||||
//
|
||||
if(!$postrow[$i]['enable_html'] || ($postrow[$i]['enable_html'] && !$board_config['allow_html']) )
|
||||
{
|
||||
$message = preg_replace("'&'", "&", $message);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Removes UID from BBCode entries
|
||||
$message = preg_replace("/\:[0-9a-z\:]+\]/si", "]", $message);
|
||||
}
|
||||
|
||||
$message = make_clickable($message);
|
||||
|
Reference in New Issue
Block a user