Merge branch '3.3.x'

This commit is contained in:
Marc Alexander 2023-02-28 20:26:30 +01:00
commit 08377a24ea
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -1094,7 +1094,7 @@ class parse_message extends bbcode_firstpass
}
// 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'])