mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-28 04:58:46 +02:00
N°8910 - Upgrade Symfony packages (#811)
This commit is contained in:
@@ -183,9 +183,9 @@ class QpEncoder implements EncoderInterface
|
||||
{
|
||||
$string = str_replace(["\t=0D=0A", ' =0D=0A', '=0D=0A'], ["=09\r\n", "=20\r\n", "\r\n"], $string);
|
||||
|
||||
return match ($end = \ord(substr($string, -1))) {
|
||||
0x09,
|
||||
0x20 => substr_replace($string, self::QP_MAP[$end], -1),
|
||||
return match ($end = ($string[-1] ?? '')) {
|
||||
"\x09",
|
||||
"\x20" => substr_replace($string, self::QP_MAP[\ord($end)], -1),
|
||||
default => $string,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user