~ubuntu-branches/ubuntu/quantal/squirrelmail/quantal

« back to all changes in this revision

Viewing changes to plugins/sent_subfolders/setup.php

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2008-09-28 16:33:48 UTC
  • mfrom: (11.1.7 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080928163348-hgxf8au2d4zspabg
Tags: 2:1.4.15-3
Cookies sent over HTTPS will now be confined to HTTPS only
(cookie secure flag) and more support for the HTTPOnly cookie
attribute. Patch taken from upstream release.
(CVE-2008-3663, closes: #499942)

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 *
9
9
 * This is a standard Squirrelmail-1.2 API for plugins.
10
10
 *
11
 
 * $Id: setup.php,v 1.14.2.6 2006/02/03 22:27:52 jervfors Exp $
 
11
 * $Id: setup.php 12440 2007-06-07 05:13:51Z jangliss $
12
12
 * @package plugins
13
13
 * @subpackage sent_subfolders
14
14
 */
223
223
            $sent_subfolder = $sent_subfolders_base . $cnd_delimiter 
224
224
                            . $year
225
225
                            . $delimiter . $quarter;
226
 
            $year_folder = $sent_subfolders_base
 
226
            $year_folder = $sent_subfolders_base . $cnd_delimiter
227
227
                            . $year;
228
228
            break;
229
229
        case SMPREF_SENT_SUBFOLDERS_MONTHLY:
231
231
            $sent_subfolder = $sent_subfolders_base . $cnd_delimiter
232
232
                            . $year
233
233
                            . $delimiter . $month;
234
 
            $year_folder = $sent_subfolders_base . $year;
 
234
            $year_folder = $sent_subfolders_base . $cnd_delimiter . $year;
235
235
            break;
236
236
        case SMPREF_SENT_SUBFOLDERS_DISABLED:
237
237
        default:
319
319
 * @return boolean 1 - is part of sent_subfolders, 0 - is not part of sent_subfolders
320
320
 */
321
321
function sent_subfolders_special_mailbox($mb) {
322
 
    global $data_dir, $username;
 
322
    global $data_dir, $username, $delimiter;
323
323
 
324
324
    $use_sent_subfolders = getPref
325
325
        ($data_dir, $username, 'use_sent_subfolders', SMPREF_OFF);
326
326
    $sent_subfolders_base = getPref($data_dir, $username, 'sent_subfolders_base', 'na');
327
327
 
328
328
    if ($use_sent_subfolders == SMPREF_ON && 
329
 
    ($mb == $sent_subfolders_base || stristr($mb,$sent_subfolders_base) ) ) {
 
329
    ($mb == $sent_subfolders_base || stristr($mb,$sent_subfolders_base. $cnd_delimiter) ) ) {
330
330
        return 1;
331
331
    }
332
332
    return 0;