Skip to content
Snippets Groups Projects
Verified Commit 722d9d1e authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #11907 body creation was not functional in mail capture

parent 52ae0fb3
No related branches found
No related tags found
No related merge requests found
......@@ -1883,16 +1883,17 @@ class MailCapture
$body = $htmlXpath->query('./body', $html)->item(0);
if(!$body) {
$contents = $html->childNodes;
$body = $htmlDoc->createElement('body');
$html->appendChild($body);
$body = $htmlDoc->createElement('body');
# Append original content to body
for($i=0, $l=$contents->length;
$i<$l;
$i++
)
) {
$body->appendChild(
$contents->item($i)
);
}
$html->appendChild($body);
}
# HEAD
......
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