diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index 770223100b..749a8798e3 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -1882,7 +1882,7 @@ function mail_encode($str, $eol = "\r\n") { $encoded_char = $is_quoted_printable ? $char = preg_replace_callback( - '/[=_\?\x20\x00-\x1F\x80-\xFF]/', + '/[()<>@,;:\\\\".\[\]=_?\x20\x00-\x1F\x80-\xFF]/', function ($matches) { $hex = dechex(ord($matches[0]));