Changeset 7592

Show
Ignore:
Timestamp:
04/27/09 16:34:43 (4 years ago)
Author:
p_lindheimer
Message:

make sure the requested report display is included in the menu items list, otherwise bogus values can be injected

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.5/amp_conf/htdocs/admin/reports.php

    r6909 r7592  
    3232} 
    3333 
    34 $display=1; 
    35 if (isset($_REQUEST['display'])) { 
    36   $display=$_REQUEST['display']; 
    37 } 
    38  
    3934// setup menu  
    4035$menu = array( 
     
    4540  ); 
    4641 
     42if (isset($_REQUEST['display']) && isset($menu[$_REQUEST['display']])) { 
     43  $display=$_REQUEST['display']; 
     44} else { 
     45  $display=1; 
     46} 
     47 
    4748// CDR viewer from www.areski.net.   
    4849// Changes for -- AMP -- commented in: