summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail/func.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-12 10:47:04 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-12 10:47:04 +0000
commit2162c335a5444e7892a04aee72cddc17017ea7e4 (patch)
treeec5f3f2e975e03436c1454a344b71ce976a43bfd /roundcubemail/program/steps/mail/func.inc
parentfad50d371066cc8a7c043198e7cb60e571c8bc9f (diff)
- Fix handling of folders with name "0" (#1487119)
git-svn-id: https://svn.roundcube.net/trunk@4216 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/func.inc')
-rw-r--r--roundcubemail/program/steps/mail/func.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc
index 39551c1c0..be5c26142 100644
--- a/roundcubemail/program/steps/mail/func.inc
+++ b/roundcubemail/program/steps/mail/func.inc
@@ -46,7 +46,7 @@ if (!in_array($RCMAIL->action, $NOIMAP_ACTIONS) && !$RCMAIL->imap_connect()) {
}
// set imap properties and session vars
-if ($mbox = get_input_value('_mbox', RCUBE_INPUT_GPC))
+if (strlen(trim($mbox = get_input_value('_mbox', RCUBE_INPUT_GPC))))
$IMAP->set_mailbox(($_SESSION['mbox'] = $mbox));
else if ($IMAP)
$_SESSION['mbox'] = $IMAP->get_mailbox_name();