summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-12-01 17:49:06 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-12-01 17:49:06 +0000
commitdbf3f6122488b5328bcad87d0c7c2978faf24212 (patch)
treee9099bd8a7e2005ba2737ad9a8e9fe633741b892
parent1e4ad86b287e774c2fc591c46006f395b17a5dd2 (diff)
Fixed folder name encoding in subscription list (Bug #1484113)
git-svn-id: https://svn.roundcube.net/trunk@386 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/steps/settings/manage_folders.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/settings/manage_folders.inc b/roundcubemail/program/steps/settings/manage_folders.inc
index 33f7ee001..5f2da4e7f 100644
--- a/roundcubemail/program/steps/settings/manage_folders.inc
+++ b/roundcubemail/program/steps/settings/manage_folders.inc
@@ -165,10 +165,9 @@ function rcube_subscription_form($attrib)
$subscribed = in_array($folder, $a_subscribed);
$protected = ($CONFIG['protect_default_folders'] == TRUE && in_array($folder,$CONFIG['default_imap_folders']));
$zebra_class = $i%2 ? 'even' : 'odd';
- if (in_array($folder, $CONFIG['default_imap_folders']))
- $folder = rcube_label(strtolower($folder));
$folder_js = rep_specialchars_output($folder, 'js');
$folder_js_enc = rep_specialchars_output(rcube_charset_convert($folder, 'UTF-7'), 'js');
+ $folder_html = $CONFIG['protect_default_folders'] && in_array($folder, $CONFIG['default_imap_folders']) ? rcube_label(strtolower($folder)) : rcube_charset_convert($folder, 'UTF-7');
if (!$protected)
$a_js_folders['rcmrow'.($i+1)] = array($folder_js, $folder_js_enc);
@@ -176,7 +175,7 @@ function rcube_subscription_form($attrib)
$out .= sprintf('<tr id="rcmrow%d" class="%s"><td>%s</td>',
$i+1,
$zebra_class,
- rep_specialchars_output(rcube_charset_convert($folder, 'UTF-7'), 'html', 'all'));
+ rep_specialchars_output($folder_html, 'html', 'all'));
if ($protected)
$out .= '<td>&nbsp;'.($subscribed ? '&#x2022;' : '-').'</td>';