Skip to content

Commit

Permalink
fix(dropdownfield): wrong IDOR token construct
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Feb 3, 2021
1 parent c55dc49 commit d7152e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/field/dropdownfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public function getRenderedHtml($canEdit = true): string {
$dparams = $this->buildParams($rand);
$dparams['display'] = false;
if (version_compare(GLPI_VERSION, '9.5.3') >= 0) {
$params['_idor_token'] = Session::getNewIDORToken(User::getType());
$params['_idor_token'] = Session::getNewIDORToken($itemtype);
}
$html .= $itemtype::dropdown($dparams);
}
Expand Down

0 comments on commit d7152e6

Please sign in to comment.