diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index 2b24bf0bf5..83aa25e25f 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -1880,7 +1880,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]));