~ubuntu-branches/ubuntu/hardy/squirrelmail/hardy-updates

« back to all changes in this revision

Viewing changes to functions/imap_mailbox.php

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2006-07-04 14:49:23 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060704144923-w5l1xdbivclpkmda
Tags: 2:1.4.7-1
* New upstream bugfix release.
  + Addresses some low-impact, theoretical or disputed security bugs,
    for which the code is tightened just-in-case:
    - Possible local file inclusion (Closes: #373731, CVE-2006-2842)
    - XSS in search.php (Closes: #375782, CVE-2006-3174)
  + Adds note to db-backend.txt about postgreSQL (Closes: #376605).

* Checked for standards version to 3.7.2, no changes necessary.
* Update maintainer address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
/**
4
4
 * imap_mailbox.php
5
5
 *
6
 
 * Copyright (c) 1999-2006 The SquirrelMail Project Team
7
 
 * Licensed under the GNU GPL. For full terms see the file COPYING.
8
 
 *
9
 
 * This impliments all functions that manipulate mailboxes
10
 
 *
11
 
 * @version $Id: imap_mailbox.php,v 1.172.2.24 2006/02/03 22:27:47 jervfors Exp $
 
6
 * This implements all functions that manipulate mailboxes
 
7
 *
 
8
 * @copyright © 1999-2006 The SquirrelMail Project Team
 
9
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 
10
 * @version $Id: imap_mailbox.php,v 1.172.2.26 2006/05/21 12:26:31 tokul Exp $
12
11
 * @package squirrelmail
13
12
 * @subpackage imap
14
13
 */
226
225
function sqimap_mailbox_create ($imap_stream, $mailbox, $type) {
227
226
    global $delimiter;
228
227
    if (strtolower($type) == 'noselect') {
229
 
        $mailbox .= $delimiter;
 
228
        $create_mailbox = $mailbox . $delimiter;
 
229
    } else {
 
230
        $create_mailbox = $mailbox;
230
231
    }
231
232
 
232
 
    $read_ary = sqimap_run_command($imap_stream, "CREATE \"$mailbox\"",
 
233
    $read_ary = sqimap_run_command($imap_stream, "CREATE \"$create_mailbox\"",
233
234
                                   true, $response, $message);
234
235
    sqimap_subscribe ($imap_stream, $mailbox);
235
236
}