Skip to content
Snippets Groups Projects
Commit 26bef932 authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix pass string by reference error

parent b0d95e5c
No related branches found
No related tags found
No related merge requests found
...@@ -275,7 +275,8 @@ class Mail_Parse { ...@@ -275,7 +275,8 @@ class Mail_Parse {
return $p->parts[0]->headers; return $p->parts[0]->headers;
// Handle rfc1892 style bounces // Handle rfc1892 style bounces
if (strtolower($ctype) === 'text/rfc822-headers') { if (strtolower($ctype) === 'text/rfc822-headers') {
$T = new Mail_mimeDecode($p->body . "\n\nIgnored"); $body = $p->body . "\n\nIgnored";
$T = new Mail_mimeDecode($body);
if ($struct = $T->decode()) if ($struct = $T->decode())
return $struct->headers; return $struct->headers;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment