Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rbairwell committed Dec 16, 2014
1 parent 956e65b commit 165ce06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bounce_driver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,9 @@ function contenttype_decode ($mimepart) {
$line = substr($line, 0, -1);
else
$line .= "\r\n";
$decoded .= preg_replace("/=([0-9A-F][0-9A-F])/e", 'chr(hexdec("$1"))', $line);
$decoded .= preg_replace_callback("/=([0-9A-F][0-9A-F])/", function($matches){ return chr(hexdec($matches[0])); } , $line);


}
case 'base64': {
$decoded .= base64_decode($line);
Expand Down

0 comments on commit 165ce06

Please sign in to comment.