mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/16932] Ensure special characters are encoded for ASCII in emails
PHPBB3-16932
This commit is contained in:
parent
fc83f213d5
commit
064a96ec07
1 changed files with 1 additions and 1 deletions
|
@ -1882,7 +1882,7 @@ function mail_encode($str, $eol = "\r\n")
|
||||||
{
|
{
|
||||||
$encoded_char = $is_quoted_printable
|
$encoded_char = $is_quoted_printable
|
||||||
? $char = preg_replace_callback(
|
? $char = preg_replace_callback(
|
||||||
'/[=_\?\x20\x00-\x1F\x80-\xFF]/',
|
'/[()<>@,;:\\\\".\[\]=_?\x20\x00-\x1F\x80-\xFF]/',
|
||||||
function ($matches)
|
function ($matches)
|
||||||
{
|
{
|
||||||
$hex = dechex(ord($matches[0]));
|
$hex = dechex(ord($matches[0]));
|
||||||
|
|
Loading…
Add table
Reference in a new issue