From c7d48cbf55c0e08eb320e4dfb0b40e0c798735a0 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Thu, 2 Feb 2012 19:49:30 +0000 Subject: [PATCH] templates/list-virtual, templates/admin_list-domain: - display domain and mailbox description with correct encoding This fixes a regression in 2.3.5 https://sourceforge.net/projects/postfixadmin/forums/forum/676076/topic/4977778 git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/branches/postfixadmin-2.3@1342 a1433add-5e2c-0410-b055-b7f2511e0802 --- CHANGELOG.TXT | 5 +++++ templates/admin_list-domain.php | 2 +- templates/list-virtual.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 4381aa81..dbdd93d7 100644 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -10,6 +10,11 @@ # Last update: # $Id$ +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) ---------------------------------------------------------------- diff --git a/templates/admin_list-domain.php b/templates/admin_list-domain.php index eb1bcdc3..59ac1292 100644 --- a/templates/admin_list-domain.php +++ b/templates/admin_list-domain.php @@ -50,7 +50,7 @@ if (sizeof ($domain_properties) > 0) { print " \n"; print "" . $domain_properties[$i]['domain'] . ""; - print "" . htmlentities($domain_properties[$i]['description']) . ""; + print "" . htmlentities($domain_properties[$i]['description'], ENT_QUOTES, 'UTF-8') . ""; print "" . $domain_properties[$i]['alias_count'] . " / " . $domain_properties[$i]['aliases'] . ""; print "" . $domain_properties[$i]['mailbox_count'] . " / " . $domain_properties[$i]['mailboxes'] . ""; if ($CONF['quota'] == 'YES') diff --git a/templates/list-virtual.php b/templates/list-virtual.php index 020a0f39..1d6cb35b 100644 --- a/templates/list-virtual.php +++ b/templates/list-virtual.php @@ -314,7 +314,7 @@ if (sizeof ($tMailbox) > 0) { } - print " " . htmlentities($tMailbox[$i]['name']) . "\n"; + print " " . htmlentities($tMailbox[$i]['name'], ENT_QUOTES, 'UTF-8') . "\n"; if ($CONF['quota'] == 'YES') { print " ";