Ignore:
Timestamp:
Nov 25, 2007 12:34:19 PM (6 years ago)
Author:
thomasb
Message:

Fixed some potential security risks + updatedd changelog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/show.inc

    r668 r930  
    5858    list($MESSAGE['parts'], $MESSAGE['attachments']) = rcmail_parse_message( 
    5959      $MESSAGE['structure'], 
    60       array('safe' => (bool)$_GET['_safe'], 
     60      array('safe' => intval($_GET['_safe']), 
    6161            'prefer_html' => $CONFIG['prefer_html'], 
    6262            'get_url' => $GET_URL.'&_part=%s') 
     
    7272  // give message uid to the client 
    7373  $OUTPUT->set_env('uid', $MESSAGE['UID']); 
    74   $OUTPUT->set_env('safemode', (bool)$_GET['_safe']); 
     74  $OUTPUT->set_env('safemode', intval($_GET['_safe'])); 
    7575 
    7676  $next = $prev = -1; 
Note: See TracChangeset for help on using the changeset viewer.