summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2009-07-30 04:07:26 +0000
committersvncommit <devs@roundcube.net>2009-07-30 04:07:26 +0000
commit659672ebf9472893629235541d131e20be789008 (patch)
tree349492e7fe1dbdfee678cddb0787c01eb6fe602b /program
parent2e63d304e4bffa82df687a2449bae3e05632a186 (diff)
fix washing of HTML encoded in something other than UTF-8
Diffstat (limited to 'program')
-rw-r--r--program/lib/washtml.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/lib/washtml.php b/program/lib/washtml.php
index efd525df3..57145a179 100644
--- a/program/lib/washtml.php
+++ b/program/lib/washtml.php
@@ -246,6 +246,7 @@ class washtml
//Charset seems to be ignored (probably if defined in the HTML document)
$node = new DOMDocument('1.0', $this->config['charset']);
$this->extlinks = false;
+ $html = mb_convert_encoding($html, 'HTML-ENTITIES', $this->config['charset']);
@$node->loadHTML($html);
return $this->dumpHtml($node);
}