Changeset 1695


Ignore:
Timestamp:
Jan 4, 2007, 12:27:32 AM (17 years ago)
Author:
rub
Message:

Fixed: HTML vulnerability (Cross Site Scripting).
Fixed: All comments are displayed on comments.php

Location:
branches/branch-1_6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/admin/user_list.php

    r1490 r1695  
    486486   
    487487    'F_ADD_ACTION' => $base_url,
    488     'F_USERNAME' => @$_GET['username'],
     488    'F_USERNAME' => @htmlentities($_GET['username']),
    489489    'F_FILTER_ACTION' => PHPWG_ROOT_PATH.'admin.php'
    490490    ));
  • branches/branch-1_6/comments.php

    r1576 r1695  
    145145}
    146146
     147// Only validated on 1.6.x
     148// on 1.7, admin can see all because he can be validated or rejected comments
     149$page['status_clause'] = 'validated="true"';
     150
    147151// +-----------------------------------------------------------------------+
    148152// |                         comments management                           |
     
    185189
    186190    'F_ACTION'=>PHPWG_ROOT_PATH.'comments.php',
    187     'F_KEYWORD'=>@$_GET['keyword'],
    188     'F_AUTHOR'=>@$_GET['author'],
     191    'F_KEYWORD'=>@htmlentities($_GET['keyword']),
     192    'F_AUTHOR'=>@htmlentities($_GET['author']),
    189193
    190194    'U_HOME' => make_index_url(),
     
    299303    AND '.$page['cat_clause'].'
    300304    AND '.$page['author_clause'].'
    301     AND '.$page['keyword_clause'];
     305    AND '.$page['keyword_clause'].'
     306    AND '.$page['status_clause'];
    302307if ($user['forbidden_categories'] != '')
    303308{
     
    341346    AND '.$page['cat_clause'].'
    342347    AND '.$page['author_clause'].'
    343     AND '.$page['keyword_clause'];
     348    AND '.$page['keyword_clause'].'
     349    AND '.$page['status_clause'];
    344350if ($user['forbidden_categories'] != '')
    345351{
Note: See TracChangeset for help on using the changeset viewer.