// php 5.2
This commit is contained in:
@@ -420,11 +420,7 @@ class Swift_Message_Headers
|
|||||||
|
|
||||||
if (false !== $p = strpos($encoded_value[$key], $this->LE))
|
if (false !== $p = strpos($encoded_value[$key], $this->LE))
|
||||||
{
|
{
|
||||||
$encoded_value[$key] = preg_replace_callback("/<([^>]+)>/",
|
$encoded_value[$key] = preg_replace_callback("/<([^>]+)>/", array($this, 'prestaShopReplace'), $encoded_value[$key]);
|
||||||
function ($matches)
|
|
||||||
{
|
|
||||||
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
|
||||||
@@ -556,6 +552,12 @@ class Swift_Message_Headers
|
|||||||
}
|
}
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function prestaShopReplace($matches)
|
||||||
|
{
|
||||||
|
return str_replace("' . $this->LE . '", "", "<$matches[1]>");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compile the list of headers which have been set and return an ascii string
|
* Compile the list of headers which have been set and return an ascii string
|
||||||
* The return value should always be 7-bit ascii and will have been cleaned for header injection
|
* The return value should always be 7-bit ascii and will have been cleaned for header injection
|
||||||
|
|||||||
Reference in New Issue
Block a user