mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
bug #490286: undoing bbencode_first_pass() when bbcode was disabled is fruitless.
git-svn-id: file:///svn/phpbb/trunk@1554 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -2353,6 +2353,7 @@ else
|
||||
$post_subject = $postrow['post_subject'];
|
||||
$post_message = $postrow['post_text'];
|
||||
$post_bbcode_uid = $postrow['bbcode_uid'];
|
||||
$post_bbcode_enabled = ($postrow['enable_bbcode'] == 1);
|
||||
|
||||
if( $mode == "editpost" )
|
||||
{
|
||||
@@ -2365,7 +2366,10 @@ else
|
||||
$user_sig = $userdata['user_sig'];
|
||||
}
|
||||
|
||||
$post_message = preg_replace("/\:(([a-z0-9]:)?)$post_bbcode_uid/si", "", $post_message);
|
||||
if ($post_bbcode_enabled)
|
||||
{
|
||||
$post_message = preg_replace("/\:(([a-z0-9]:)?)$post_bbcode_uid/si", "", $post_message);
|
||||
}
|
||||
$post_message = str_replace("<br />", "\n", $post_message);
|
||||
$post_message = preg_replace('#</textarea>#si', '</textarea>', $post_message);
|
||||
|
||||
|
Reference in New Issue
Block a user