summaryrefslogtreecommitdiff
path: root/program/steps/settings/manage_folders.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-01-13 16:03:36 +0000
committerthomascube <thomas@roundcube.net>2006-01-13 16:03:36 +0000
commitc0309556342871c2f65b5212ffdf35579d1ce7e6 (patch)
treee05162e70acaa4d94d4211820c24233bae4f070e /program/steps/settings/manage_folders.inc
parent0af7e8c0e6d6183dd19ea3bad0b3e8bd80f77aa9 (diff)
Switched to full UTF-8 support
Diffstat (limited to 'program/steps/settings/manage_folders.inc')
-rw-r--r--program/steps/settings/manage_folders.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/program/steps/settings/manage_folders.inc b/program/steps/settings/manage_folders.inc
index 33d83dfff..0702ce91d 100644
--- a/program/steps/settings/manage_folders.inc
+++ b/program/steps/settings/manage_folders.inc
@@ -29,7 +29,7 @@ rcmail_imap_init(TRUE);
if ($_action=='subscribe')
{
if (strlen($_GET['_mboxes']))
- $IMAP->subscribe(explode(',', $_GET['_mboxes']));
+ $IMAP->subscribe(array($_GET['_mboxes']));
if ($_GET['_remote'])
rcube_remote_response('// subscribed');
@@ -39,7 +39,7 @@ if ($_action=='subscribe')
else if ($_action=='unsubscribe')
{
if (strlen($_GET['_mboxes']))
- $IMAP->unsubscribe(explode(',', $_GET['_mboxes']));
+ $IMAP->unsubscribe(array($_GET['_mboxes']));
if ($_GET['_remote'])
rcube_remote_response('// unsubscribed');
@@ -53,7 +53,7 @@ else if ($_action=='create-folder')
if ($create && $_GET['_remote'])
{
- $commands = sprintf("this.add_folder_row('%s')", rep_specialchars_output($create, 'js'));
+ $commands = sprintf("this.add_folder_row('%s')", $OUTPUT->encode_string(rep_specialchars_output($create, 'js')));
rcube_remote_response($commands);
}
else if (!$create && $_GET['_remote'])
@@ -69,7 +69,7 @@ else if ($_action=='create-folder')
else if ($_action=='delete-folder')
{
if (strlen($_GET['_mboxes']))
- $deleted = $IMAP->delete_mailbox(explode(',', $_GET['_mboxes']));
+ $deleted = $IMAP->delete_mailbox(array($_GET['_mboxes']));
if ($_GET['_remote'] && $deleted)
rcube_remote_response(sprintf("this.remove_folder_row('%s')", rep_specialchars_output($_GET['_mboxes'], 'js')));
@@ -129,7 +129,7 @@ function rcube_subscription_form($attrib)
$out .= sprintf('<tr id="rcmrow%d" class="%s"><td>%s</td><td>%s</td><td><a href="#delete" onclick="%s.command(\'delete-folder\',\'%s\')" title="%s">%s</a></td>',
$i+1,
$zebra_class,
- rep_specialchars_output(UTF7DecodeString($folder), 'html', 'all'),
+ $OUTPUT->encode_string(rep_specialchars_output(UTF7DecodeString($folder), 'html', 'all')),
$checkbox_subscribe->show(in_array($folder, $a_subscribed)?$folder:'', array('value' => $folder)),
$JS_OBJECT_NAME,
$folder_js,