mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX preg_replace_callback in emailer was broken
Fixes bug introduced by 9deb11f9a0
Email has no content
This is what happens when we make commits without testing!
This commit is contained in:
parent
920edf88e7
commit
999fd3901c
@ -424,7 +424,7 @@ function encodeFileForEmail($file, $destFileName = false, $disposition = NULL, $
|
|||||||
function QuotedPrintable_encode($quotprint) {
|
function QuotedPrintable_encode($quotprint) {
|
||||||
$quotprint = (string)str_replace('\r\n',chr(13).chr(10),$quotprint);
|
$quotprint = (string)str_replace('\r\n',chr(13).chr(10),$quotprint);
|
||||||
$quotprint = (string)str_replace('\n', chr(13).chr(10),$quotprint);
|
$quotprint = (string)str_replace('\n', chr(13).chr(10),$quotprint);
|
||||||
$quotprint = (string)preg_replace_callback("~([\x01-\x1F\x3D\x7F-\xFF])~e", function($matches) {
|
$quotprint = (string)preg_replace_callback("~([\x01-\x1F\x3D\x7F-\xFF])~", function($matches) {
|
||||||
return sprintf('=%02X', ord($matches[1]));
|
return sprintf('=%02X', ord($matches[1]));
|
||||||
}, $quotprint);
|
}, $quotprint);
|
||||||
//$quotprint = (string)str_replace('\=0D=0A',"=0D=0A",$quotprint);
|
//$quotprint = (string)str_replace('\=0D=0A',"=0D=0A",$quotprint);
|
||||||
|
Loading…
Reference in New Issue
Block a user