Skip to content

Commit

Permalink
fixed #1876 Added check_input_parameter for $_GET parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuLP committed Mar 1, 2023
1 parent e8b8813 commit 721384f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions admin/history.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@

check_status(ACCESS_ADMINISTRATOR);

check_input_parameter('filter_ip', $_GET, false, '/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/');
check_input_parameter('filter_image_id', $_GET, false, '/^\d+$/');
check_input_parameter('filter_user_id', $_GET, false, '/^\d+$/');

// +-----------------------------------------------------------------------+
// | template init |
// +-----------------------------------------------------------------------+
Expand Down

0 comments on commit 721384f

Please sign in to comment.