Changeset 1023 in subversion


Ignore:
Timestamp:
Feb 6, 2008 2:41:11 AM (5 years ago)
Author:
thomasb
Message:

Remember decision to display images for a certain message during session (#1484754)

Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r1021 r1023  
    11CHANGELOG RoundCube Webmail 
    22--------------------------- 
     3 
     42008/02/06 (thomasb) 
     5---------- 
     6- Remember decision to display images for a certain message during session (#1484754) 
    37 
    482008/02/05 (thomasb) 
     
    913- Applied patch for updating page title (#1484727, #1484650) 
    1014- Applied patch to prevent from purging inbox by uberlinuxguy (#1484449) 
     15- Applied patch to prevent bad header delimiters (#1484751) 
    1116- Also send search request when deleting a contact (#1484620) 
    1217- Add CSS hack for Safari 
  • trunk/roundcubemail/program/steps/mail/func.inc

    r1013 r1023  
    639639    $a_return_parts[] = &$structure; 
    640640    } 
    641  
     641     
    642642  // message contains alternative parts 
    643643  else if ($message_ctype_primary=='multipart' && $message_ctype_secondary=='alternative' && is_array($structure->parts)) 
     
    745745        $a_attachments = array_merge($a_attachments, $attachmnts); 
    746746        } 
     747         
     748      // ignore "virtual" protocol parts 
     749      else if ($primary_type=='protocol') 
     750        continue; 
    747751 
    748752      // part is file/attachment 
     
    862866    $attrib['id'] = 'rcmailMsgBody'; 
    863867 
    864   $safe_mode = intval($_GET['_safe']); 
     868  $safe_mode = $MESSAGE['is_safe'] || intval($_GET['_safe']); 
    865869  $attrib_str = create_attrib_string($attrib, array('style', 'class', 'id')); 
    866870  $out = '<div '. $attrib_str . ">\n"; 
  • trunk/roundcubemail/program/steps/mail/show.inc

    r1013 r1023  
    4343      } 
    4444    } 
     45     
     46  // check if safe flag is set 
     47  if ($MESSAGE['is_safe'] = intval($_GET['_safe'])) 
     48    $_SESSION['safe_messages'][$MESSAGE['UID']] = true; 
     49  else if ($_SESSION['safe_messages'][$MESSAGE['UID']]) 
     50    $MESSAGE['is_safe'] = 1; 
    4551 
    4652  // calculate Etag for this request 
     
    5965    list($MESSAGE['parts'], $MESSAGE['attachments']) = rcmail_parse_message( 
    6066      $MESSAGE['structure'], 
    61       array('safe' => intval($_GET['_safe']), 
     67      array('safe' => $MESSAGE['is_safe'], 
    6268            'prefer_html' => $CONFIG['prefer_html'], 
    6369            'get_url' => $GET_URL.'&_part=%s') 
     
    7379  // give message uid to the client 
    7480  $OUTPUT->set_env('uid', $MESSAGE['UID']); 
    75   $OUTPUT->set_env('safemode', intval($_GET['_safe'])); 
     81  $OUTPUT->set_env('safemode', $MESSAGE['is_safe']); 
    7682   
    7783  // check for unset disposition notification 
Note: See TracChangeset for help on using the changeset viewer.