aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornatec <natec@users.sourceforge.net>2001-11-08 06:06:54 +0000
committernatec <natec@users.sourceforge.net>2001-11-08 06:06:54 +0000
commit8ef00898b3eeea09a46ed24a140983f203d90b02 (patch)
treef4bf758da4b63ee2b5466cc38eb9c0e63f4caa0f
parent2f7f35a1900b8aa40736aa319ef8dd5aef1e7ed1 (diff)
downloadforums-8ef00898b3eeea09a46ed24a140983f203d90b02.tar
forums-8ef00898b3eeea09a46ed24a140983f203d90b02.tar.gz
forums-8ef00898b3eeea09a46ed24a140983f203d90b02.tar.bz2
forums-8ef00898b3eeea09a46ed24a140983f203d90b02.tar.xz
forums-8ef00898b3eeea09a46ed24a140983f203d90b02.zip
fixed code:1 bbcode bug.
git-svn-id: file:///svn/phpbb/trunk@1287 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/posting.php2
-rw-r--r--phpBB/privmsg.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 97a926ca12..ac35af5b93 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1950,7 +1950,7 @@ else
$user_sig = $userdata['user_sig'];
}
- $post_message = preg_replace("/\:$post_bbcode_uid(|\:[a-z])/si", "", $post_message);
+ $post_message = preg_replace("/(|\:1)\:$post_bbcode_uid(|\:[a-z])/si", "", $post_message);
$post_message = str_replace("<br />", "\n", $post_message);
$post_message = preg_replace($html_entities_match, $html_entities_replace, $post_message);
$post_message = preg_replace('#</textarea>#si', '&lt;/textarea&gt;', $post_message);
diff --git a/phpBB/privmsg.php b/phpBB/privmsg.php
index 2e861d9e1d..f77f0abd7c 100644
--- a/phpBB/privmsg.php
+++ b/phpBB/privmsg.php
@@ -1178,7 +1178,7 @@ else if( $submit || $refresh || $mode != "" )
$to_username = $privmsg['username'];
$to_userid = $privmsg['user_id'];
- $privmsg_message = preg_replace("/\:$post_bbcode_uid(|\:[a-z])/si", "", $privmsg_message);
+ $privmsg_message = preg_replace("/(|\:1)\:$post_bbcode_uid(|\:[a-z])/si", "", $privmsg_message);
$privmsg_message = str_replace("<br />", "\n", $privmsg_message);
$privmsg_message = preg_replace($html_entities_match, $html_entities_replace, $privmsg_message);
$privmsg_message = preg_replace('#</textarea>#si', '&lt;/textarea&gt;', $privmsg_message);