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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.