Ignore:
Timestamp:
Nov 25, 2007 2:45:38 PM (5 years ago)
Author:
thomasb
Message:

More input sanitizing

File:
1 edited

Legend:

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

    r930 r931  
    11921192  global $CONFIG, $IMAP, $MESSAGE; 
    11931193   
    1194   $part = get_input_value('_part', RCUBE_INPUT_GPC); 
     1194  $part = asciiwords(get_input_value('_part', RCUBE_INPUT_GPC)); 
    11951195  if (!is_array($MESSAGE) || !is_array($MESSAGE['parts']) || !($_GET['_uid'] && $_GET['_part']) || !$MESSAGE['parts'][$part]) 
    11961196    return ''; 
     
    12261226  global $MESSAGE; 
    12271227   
    1228   $part = $MESSAGE['parts'][get_input_value('_part', RCUBE_INPUT_GPC)]; 
     1228  $part = $MESSAGE['parts'][asciiwords(get_input_value('_part', RCUBE_INPUT_GPC))]; 
    12291229  $ctype_primary = strtolower($part->ctype_primary); 
    12301230 
Note: See TracChangeset for help on using the changeset viewer.