mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
Merge branch '3.2.x'
* 3.2.x: [ticket/14559] Remove attachment BBCode tags from the quoted message
This commit is contained in:
commit
4ded3864cd
1 changed files with 3 additions and 0 deletions
|
@ -1593,6 +1593,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 = $phpbb_container->get('text_formatter.utils')->generate_quote(
|
$message_parser->message = $phpbb_container->get('text_formatter.utils')->generate_quote(
|
||||||
|
|
Loading…
Add table
Reference in a new issue