diff --git a/web/diag/action_realmcheck.php b/web/diag/action_realmcheck.php index 7ebdf3e7e..06cbe6ab5 100644 --- a/web/diag/action_realmcheck.php +++ b/web/diag/action_realmcheck.php @@ -42,8 +42,7 @@ } $inst_id = filter_input(INPUT_GET, 'inst_id', FILTER_VALIDATE_INT); $profile_id = filter_input(INPUT_GET, 'profile_id', FILTER_VALIDATE_INT); -$realmUnfiltered = ilter_input(INPUT_GET, 'realm') ?? filter_input(INPUT_POST, 'realm'); -$realm = htmlspecialchars(strip_tags($realmUnfiltered)); +$realm = htmlspecialchars(strip_tags(filter_input(INPUT_GET, 'realm') ?? filter_input(INPUT_POST, 'realm'))); if ($inst_id && $profile_id) { $my_inst = $validator->existingIdP($inst_id, $user); $my_profile = $validator->existingProfile($profile_id, $my_inst->identifier);