fix header swift from prod
This commit is contained in:
parent
4071c0d4d7
commit
90cccba602
@ -420,10 +420,10 @@ class Swift_Message_Headers
|
|||||||
|
|
||||||
if (false !== $p = strpos($encoded_value[$key], $this->LE))
|
if (false !== $p = strpos($encoded_value[$key], $this->LE))
|
||||||
{
|
{
|
||||||
$cb = 'str_replace("' . $this->LE . '", "", "<$1>");';
|
// $cb = 'str_replace("' . $this->LE . '", "", "<$1>");';
|
||||||
//$encoded_value[$key] = preg_replace("/<([^>]+)>/e", $cb, $encoded_value[$key]);
|
// $encoded_value[$key] = preg_replace("/<([^>]+)>/e", $cb, $encoded_value[$key]);
|
||||||
$encoded_value[$key] = preg_replace_callback('/<([^>]+)>/', function($matches) {
|
$encoded_value[$key] = preg_replace_callback('/<([^>]+)>/', function($matches) {
|
||||||
return str_replace("' . $this->LE . '", '', $matches[1]);
|
return str_replace($this->LE, '', '<' . $matches[1] . '>');
|
||||||
}, $encoded_value[$key]);
|
}, $encoded_value[$key]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user