Skip to content

Commit

Permalink
Ensure start is an integer; fixes #2449
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Jul 13, 2017
1 parent c50aeb8 commit 1d77d01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/search.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -5087,6 +5087,10 @@ static function manageParams($itemtype, $params = [], $usesession = true,
$default_values["sort"] = 1;
$default_values["is_deleted"] = 0;

if (isset($params['start'])) {
$params['start'] = (int)$params['start'];
}

if ($CFG_GLPI['allow_search_view'] == 2) {
$default_criteria = 'view';
} else {
Expand Down

0 comments on commit 1d77d01

Please sign in to comment.