Merge branch 'feature/fix_php_errors' into 'develop'
Fix error PHP5.5 See merge request !2
This commit is contained in:
commit
8bb987a812
@ -420,8 +420,9 @@ 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>");';
|
$encoded_value[$key] = preg_replace_callback("/<([^>]+)>/", function($matches) {
|
||||||
$encoded_value[$key] = preg_replace("/<([^>]+)>/e", $cb, $encoded_value[$key]);
|
return str_replace($this->LE, '', $matches[1]);
|
||||||
|
}, $encoded_value[$key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Turn our header into an array of lines ready for wrapping around the encoding specification
|
//Turn our header into an array of lines ready for wrapping around the encoding specification
|
||||||
|
Loading…
Reference in New Issue
Block a user