From 4589fd6595629f70bb0cfdb0d93a3652b3468795 Mon Sep 17 00:00:00 2001 From: Tomasz Date: Fri, 17 May 2024 16:04:25 +0000 Subject: [PATCH] fixing a typo bug --- web/diag/action_realmcheck.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);