diff options
author | alecpl <alec@alec.pl> | 2010-11-12 10:47:04 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-11-12 10:47:04 +0000 |
commit | 44840971e8e405cc41f923eaff0a32d7accb496c (patch) | |
tree | e5bdb35c732708b4ae8652369b4e9a599f2d5d4c /program/steps/mail/func.inc | |
parent | d2b27d11759cd1c668293a569aed1afaa7cfd741 (diff) |
- Fix handling of folders with name "0" (#1487119)
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r-- | program/steps/mail/func.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 39551c1c0..be5c26142 100644 --- a/program/steps/mail/func.inc +++ b/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(); |