projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
783a436
)
Mailer.php
author
Alan Knowles
<alan@roojs.com>
Fri, 19 Jul 2013 03:42:10 +0000
(11:42 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 19 Jul 2013 03:42:10 +0000
(11:42 +0800)
Mailer.php
patch
|
blob
|
history
diff --git
a/Mailer.php
b/Mailer.php
index
2b9f8de
..
9dda6dd
100644
(file)
--- a/
Mailer.php
+++ b/
Mailer.php
@@
-223,7
+223,8
@@
class Pman_Core_Mailer {
function htmlbodytoCID($html)
{
$dom = new DOMDocument();
- $dom->loadHTML('<?xml encoding="UTF-8">' .$html);
+ // this may raise parse errors as some html may be a component..
+ @$dom->loadHTML('<?xml encoding="UTF-8">' .$html);
$imgs= $dom->getElementsByTagName('img');
foreach ($imgs as $i=>$img) {