[Tickets #11069] wrong utf-8 encondigs at html viewer
bugs at horde.org
bugs at horde.org
Mon Mar 12 09:31:49 UTC 2012
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/11069
------------------------------------------------------------------------------
Ticket | 11069
Created By | ak at lps.komi.ru
Summary | wrong utf-8 encondigs at html viewer
Queue | Horde Framework Packages
Version | Git master
Type | Bug
State | Unconfirmed
Priority | 3. High
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
ak at lps.komi.ru (2012-03-12 09:31) wrote:
When we are using "View HTML data in new window" function the
framework creates DOMDocument to make cleaning and de-XSS.
There is a problem here with utf-8 (discussed
php.net/manual/en/domdocument.loadhtml.php)
I found the bug and fixed in my distribution (PEAR/Horde/Domhtml.php line 68):
Use $doc->loadHTML('<html><head><meta http-equiv="content-type"
content="text/html; charset=UTF-8">' .
Horde_String::convertCharset($text, $charset, 'UTF-8'));
instead of $doc->loadHTML($this->_xmlencoding .
Horde_String::convertCharset($text, $charset, 'UTF-8'));
More information about the bugs
mailing list