Changeset 2755


Ignore:
Timestamp:
Oct 16, 2008, 2:09:53 AM (16 years ago)
Author:
rvelices
Message:
Location:
branches/2.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/comments.php

    r2299 r2755  
    6666$page['sort_by'] = 'date';
    6767// if the form was submitted, it overloads default behaviour
    68 if (isset($_GET['sort_by']))
     68if (isset($_GET['sort_by']) and isset($sort_by[$_GET['sort_by']]) )
    6969{
    7070  $page['sort_by'] = $_GET['sort_by'];
     
    7575$page['sort_order'] = 'DESC';
    7676// if the form was submitted, it overloads default behaviour
    77 if (isset($_GET['sort_order']))
     77if (isset($_GET['sort_order']) and isset($sort_order[$_GET['sort_order']]))
    7878{
    7979  $page['sort_order'] = $_GET['sort_order'];
  • branches/2.0/plugins/event_tracer/event_list.php

    r2254 r2755  
    1717          {
    1818            $files = array_merge($files, get_php_files($path.'/'.$node, $to_ignore));
    19            
     19
    2020          }
    2121          if ( is_file($path.'/'.$node) )
     
    4444  $code = preg_replace( '#\/\*.*\*\/#m', '', $code);
    4545  $code = preg_replace( '#\/\/.*#', '', $code);
    46  
     46
    4747  $count = preg_match_all(
    4848    '#[^a-zA-Z_$-]trigger_(action|event)\s*\(\s*([^,)]+)#m',
     
    5858}
    5959
    60 $sort= isset($_GET['sort']) ? $_GET['sort'] : 1;
     60$sort= isset($_GET['sort']) ? (int)$_GET['sort'] : 1;
    6161usort(
    6262  $events,
Note: See TracChangeset for help on using the changeset viewer.