mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 10:44:20 +02:00
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
This commit is contained in:
@@ -1040,7 +1040,7 @@ if( $submit && $mode != "vote" )
|
||||
{
|
||||
$error_msg .= "<br />";
|
||||
}
|
||||
$error_msg .= $lang['Bad_username'];
|
||||
$error_msg .= $lang['Invalid_username'];
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -2358,7 +2358,7 @@ else
|
||||
|
||||
$msg_date = create_date($board_config['default_dateformat'], $postrow['post_time'], $board_config['board_timezone']);
|
||||
|
||||
$post_message = "[quote=" . $post_username . "]\n" . $post_message . "\n[/quote]";
|
||||
$post_message = "[quote=\"" . $post_username . "\"]\n" . $post_message . "\n[/quote]";
|
||||
|
||||
$mode = "reply";
|
||||
}
|
||||
|
Reference in New Issue
Block a user