File postfixadmin-2.3.5-r1342-description-encoding.diff of Package postfixadmin
display domain and mailbox description with correct encoding
https://sourceforge.net/projects/postfixadmin/forums/forum/676076/topic/4977778
commited upstream as r1342 (2.3 branch)
Index: templates/admin_list-domain.php
===================================================================
--- templates/admin_list-domain.php (Revision 1341)
+++ templates/admin_list-domain.php (Revision 1342)
@@ -50,7 +50,7 @@
{
print " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n";
print "<td><a href=\"list-virtual.php?domain=" . $domain_properties[$i]['domain'] . "\">" . $domain_properties[$i]['domain'] . "</a></td>";
- print "<td>" . htmlentities($domain_properties[$i]['description']) . "</td>";
+ print "<td>" . htmlentities($domain_properties[$i]['description'], ENT_QUOTES, 'UTF-8') . "</td>";
print "<td>" . $domain_properties[$i]['alias_count'] . " / " . $domain_properties[$i]['aliases'] . "</td>";
print "<td>" . $domain_properties[$i]['mailbox_count'] . " / " . $domain_properties[$i]['mailboxes'] . "</td>";
if ($CONF['quota'] == 'YES')
Index: templates/list-virtual.php
===================================================================
--- templates/list-virtual.php (Revision 1341)
+++ templates/list-virtual.php (Revision 1342)
@@ -314,7 +314,7 @@
}
- print " <td>" . htmlentities($tMailbox[$i]['name']) . "</td>\n";
+ print " <td>" . htmlentities($tMailbox[$i]['name'], ENT_QUOTES, 'UTF-8') . "</td>\n";
if ($CONF['quota'] == 'YES')
{
print " <td>";
Index: CHANGELOG.TXT
===================================================================
--- CHANGELOG.TXT (Revision 1341)
+++ CHANGELOG.TXT (Revision 1342)
@@ -8,7 +8,12 @@
# http://www.postfixadmin.com or http://postfixadmin.sf.net
#
# Last update:
-# $Id: CHANGELOG.TXT 1335 2012-01-15 12:10:59Z christian_boltz $
+# $Id: CHANGELOG.TXT 1342 2012-02-02 19:49:30Z christian_boltz $
+
+changes since the 2.3.5 release (postfixadmin-2.3 branch)
+----------------------------------------------------------------
+
+ - display domain and mailbox description with correct encoding
Version 2.3.5 - 2012/01/16 - SVN r1335 (postfixadmin-2.3 branch)
----------------------------------------------------------------