aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/privmsg.php
diff options
context:
space:
mode:
authornatec <natec@users.sourceforge.net>2001-11-25 23:31:04 +0000
committernatec <natec@users.sourceforge.net>2001-11-25 23:31:04 +0000
commitdbb0ce8eeeeb9091d814e673b047253909c0d8c7 (patch)
tree910c94ff8472fabd8cb09a083dd67f71408765e7 /phpBB/privmsg.php
parenta25d1820f584595a8d55398358f4ebfd8e165773 (diff)
downloadforums-dbb0ce8eeeeb9091d814e673b047253909c0d8c7.tar
forums-dbb0ce8eeeeb9091d814e673b047253909c0d8c7.tar.gz
forums-dbb0ce8eeeeb9091d814e673b047253909c0d8c7.tar.bz2
forums-dbb0ce8eeeeb9091d814e673b047253909c0d8c7.tar.xz
forums-dbb0ce8eeeeb9091d814e673b047253909c0d8c7.zip
Fixed bug 478218 -- [ and ] in usernames qith quote= bbcode. Usernames can no longer contain the double-quote character. Also removed a dupe from lang_main file.
git-svn-id: file:///svn/phpbb/trunk@1441 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/privmsg.php')
-rw-r--r--phpBB/privmsg.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/privmsg.php b/phpBB/privmsg.php
index 9493434cc1..fa3e55fde7 100644
--- a/phpBB/privmsg.php
+++ b/phpBB/privmsg.php
@@ -1263,7 +1263,7 @@ else if( $submit || $refresh || $mode != "" )
$to_username = $privmsg['username'];
$to_userid = $privmsg['user_id'];
- $privmsg_message = preg_replace("/(|\:1)\:$post_bbcode_uid(|\:[a-z])/si", "", $privmsg_message);
+ $privmsg_message = preg_replace("/\:(([a-z0-9]:)?)$post_bbcode_uid/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);
@@ -1274,7 +1274,7 @@ else if( $submit || $refresh || $mode != "" )
$msg_date = create_date($board_config['default_dateformat'], $privmsg['privmsgs_date'], $board_config['board_timezone']); //"[date]" . $privmsg['privmsgs_time'] . "[/date]";
- $privmsg_message = "[quote=" . $to_username . "]\n" . $privmsg_message . "\n[/quote]";
+ $privmsg_message = "[quote=\"" . $to_username . "\"]\n" . $privmsg_message . "\n[/quote]";
$mode = "reply";
}