Skip to content

Commit

Permalink
Merge branch '3.3.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
marc1706 committed Feb 28, 2023
2 parents 46e15be + 4bf78fd commit 08377a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpBB/includes/message_parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ function parse($allow_bbcode, $allow_magic_url, $allow_smilies, $allow_img_bbcod
}

// Store message length...
$message_length = ($mode == 'post') ? utf8_strlen($this->message) : utf8_strlen(preg_replace('#\[\/?[a-z\*\+\-]+(=[\S]+)?\]#ius', ' ', $this->message));
$message_length = ($mode == 'post') ? utf8_strlen($this->message) : utf8_strlen(preg_replace('#\[\/?[a-z\*\+\-]+(?:=\S+?)?\]#ius', '', $this->message));

// Maximum message length check. 0 disables this check completely.
if ((int) $config['max_' . $mode . '_chars'] > 0 && $message_length > (int) $config['max_' . $mode . '_chars'])
Expand Down

0 comments on commit 08377a2

Please sign in to comment.