Skip to content

Commit

Permalink
removing a forgotten print_r and attempting to make Scrutinizier happ…
Browse files Browse the repository at this point in the history
…ier about supposed security problem - which is a false positive
  • Loading branch information
twoln committed Apr 4, 2024
1 parent 53e78ab commit 79034c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/admin/overview_federation.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,16 @@

<?php
$mgmt = new \core\UserManagement();
print_r($certStatusIcons[0]);
$fed_id = '';
if ($user->isSuperadmin() && isset($_GET['fed_id'])) {
$cat = new \core\CAT(); // initialises Entity static members
$fedIdentifiers = array_keys($cat->knownFederations);
if (!in_array(strtoupper($_GET['fed_id']), $fedIdentifiers)) {
throw new Exception($this->inputValidationError(sprintf("This %s does not exist!", \core\common\Entity::$nomenclature_fed)));
} else {
$fed_id = $_GET['fed_id'];
}
$feds = [['name'=>' user:fedadmin', 'value' => $_GET['fed_id']]];
$feds = [['name'=>' user:fedadmin', 'value' => $fed_id]];
} elseif (!$user->isFederationAdmin()) {
echo "<p>" . sprintf(_("You are not a %s manager."), $uiElements->nomenclatureFed) . "</p>";
echo $deco->footer();
Expand Down

0 comments on commit 79034c5

Please sign in to comment.