Changeset 161c28d in github


Ignore:
Timestamp:
Sep 5, 2009 8:31:19 AM (4 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
e077870a
Parents:
7df0e35
Message:
  • Fix wrong headers for IE on servers without $_SERVERHTTPS? (#1485926)
  • Force IE style headers for attachments in non-HTTPS session, 'use_https' option (#1485655)
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r7df0e35 r161c28d  
    22=========================== 
    33 
     4- Fix wrong headers for IE on servers without $_SERVER['HTTPS'] (#1485926) 
     5- Force IE style headers for attachments in non-HTTPS session, 'use_https' option (#1485655) 
    46- Check 'post_max_size' for upload max filesize (#1486089)  
    57- Password Plugin: Fix %d inserts username instead of domain (#1486088) 
  • index.php

    r7ef47e5 r161c28d  
    6565 
    6666// check if https is required (for login) and redirect if necessary 
    67 if ($RCMAIL->config->get('force_https', false) && empty($_SESSION['user_id']) && !(isset($_SERVER['HTTPS']) || $_SERVER['SERVER_PORT'] == 443)) { 
     67if ($RCMAIL->config->get('force_https', false) && empty($_SESSION['user_id']) 
     68    && !(isset($_SERVER['HTTPS']) || $_SERVER['SERVER_PORT'] == 443 || $RCMAIL->config->get('use_https'))) { 
    6869  header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 
    6970  exit; 
  • program/include/rcube_shared.inc

    r8f6a466 r161c28d  
    4242   
    4343  // We need to set the following headers to make downloads work using IE in HTTPS mode. 
    44   if (isset($_SERVER['HTTPS'])) { 
     44  if (isset($_SERVER['HTTPS']) || rcmail::get_instance()->config->get('use_https')) { 
    4545    header('Pragma: '); 
    4646    header('Cache-Control: '); 
  • program/lib/imap.inc

    r172552a r161c28d  
    621621 
    622622        stream_set_timeout($conn->fp, 10); 
    623         $line = stream_get_line($conn->fp, 8192, "\r\n"); 
     623        $line = stream_get_line($conn->fp, 8192, "\n"); 
    624624 
    625625        if ($my_prefs['debug_mode'] && $line) 
  • program/steps/mail/rss.inc

    recb9fb0 r161c28d  
    3131 
    3232$webmail_url = 'http'; 
    33 if (strstr('HTTPS', $_SERVER['SERVER_PROTOCOL'] )!== FALSE) 
     33if (strstr('HTTPS', $_SERVER['SERVER_PROTOCOL'] )!== FALSE || $RCMAIL->config->get('use_https')) 
    3434  $webmail_url .= 's'; 
    3535$webmail_url .= '://'.$_SERVER['SERVER_NAME']; 
Note: See TracChangeset for help on using the changeset viewer.