Changeset 4495 for branches/2.0/admin


Ignore:
Timestamp:
Dec 15, 2009, 1:33:57 AM (14 years ago)
Author:
plg
Message:

bug 1329 fixed: add a check_input_parameter function to prevent hacking
attempts.

Location:
branches/2.0/admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/admin/cat_list.php

    r3046 r4495  
    6565// +-----------------------------------------------------------------------+
    6666
     67check_input_parameter('parent_id', @$_GET['parent_id'], false, PATTERN_ID);
     68
    6769$categories = array();
    6870
  • branches/2.0/admin/element_set.php

    r3217 r4495  
    4040check_status(ACCESS_ADMINISTRATOR);
    4141
     42check_input_parameter('selection', @$_POST['selection'], true, PATTERN_ID);
     43
    4244// +-----------------------------------------------------------------------+
    4345// |                          caddie management                            |
  • branches/2.0/admin/element_set_global.php

    r3046 r4495  
    4343// |                         deletion form submission                      |
    4444// +-----------------------------------------------------------------------+
     45
     46// the $_POST['selection'] was already checked in element_set.php
     47check_input_parameter('add_tags', @$_POST['add_tags'], true, PATTERN_ID);
     48check_input_parameter('del_tags', @$_POST['del_tags'], true, PATTERN_ID);
     49check_input_parameter('associate', @$_POST['associate'], false, PATTERN_ID);
     50check_input_parameter('dissociate', @$_POST['dissociate'], false, PATTERN_ID);
    4551
    4652if (isset($_POST['delete']))
  • branches/2.0/admin/picture_modify.php

    r3389 r4495  
    3434check_status(ACCESS_ADMINISTRATOR);
    3535
     36check_input_parameter('image_id', $_GET['image_id'], false, PATTERN_ID);
     37check_input_parameter('cat_id', @$_GET['cat_id'], false, PATTERN_ID);
     38
    3639// +-----------------------------------------------------------------------+
    3740// |                          synchronize metadata                         |
Note: See TracChangeset for help on using the changeset viewer.