mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/14559] Remove attachment BBCode tags from the quoted message
PHPBB3-14559
This commit is contained in:
@@ -1589,6 +1589,9 @@ $message_parser->decode_message($post_data['bbcode_uid']);
|
|||||||
|
|
||||||
if ($generate_quote)
|
if ($generate_quote)
|
||||||
{
|
{
|
||||||
|
// Remove attachment bbcode tags from the quoted message to avoid mixing with the new post attachments if any
|
||||||
|
$message_parser->message = preg_replace('#\[attachment=([0-9]+)\](.*?)\[\/attachment\]#uis', '\\2', $message_parser->message);
|
||||||
|
|
||||||
if ($config['allow_bbcode'])
|
if ($config['allow_bbcode'])
|
||||||
{
|
{
|
||||||
$message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "[/quote]\n";
|
$message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "[/quote]\n";
|
||||||
|
Reference in New Issue
Block a user