Ignore:
Timestamp:
May 18, 2006 11:46:50 AM (7 years ago)
Author:
cmcnulty
Message:

renamed $mbox so that it will stop interfering with the $_SESSION when register_globals is turned on

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/list.inc

    r175 r232  
    4747  { 
    4848  $a_msgs = split(',', $_SESSION['search'][$_GET['_search']]); 
    49   $a_headers = $IMAP->list_header_set($mbox, $a_msgs, NULL, $sort_col, $sort_order); 
     49  $a_headers = $IMAP->list_header_set($mbox_name, $a_msgs, NULL, $sort_col, $sort_order); 
    5050  $count = count($a_msgs); 
    5151  } 
     
    5353  { 
    5454  if ($count = $IMAP->messagecount()) 
    55     $a_headers = $IMAP->list_headers($mbox, NULL, $sort_col, $sort_order); 
     55    $a_headers = $IMAP->list_headers($mbox_name, NULL, $sort_col, $sort_order); 
    5656  } 
    5757 
    58 $unseen = $IMAP->messagecount($mbox, 'UNSEEN', !empty($_GET['_refresh']) ? TRUE : FALSE); 
     58$unseen = $IMAP->messagecount($mbox_name, 'UNSEEN', !empty($_GET['_refresh']) ? TRUE : FALSE); 
    5959 
    6060// update message count display 
     
    6565 
    6666// update mailboxlist 
    67 $mbox = $IMAP->get_mailbox_name(); 
    68 $commands .= sprintf("this.set_unread_count('%s', %d);\n", addslashes($mbox), $unseen); 
     67$mbox_name = $IMAP->get_mailbox_name(); 
     68$commands .= sprintf("this.set_unread_count('%s', %d);\n", addslashes($mbox_name), $unseen); 
    6969 
    7070 
Note: See TracChangeset for help on using the changeset viewer.