From 06fe20a789d10b4330f79da5d3c9185ab5f7b873 Mon Sep 17 00:00:00 2001 From: jakani24 Date: Thu, 4 Apr 2024 20:51:55 +0200 Subject: [PATCH] Update server.php --- src/server/cyberhex-code/test/server.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/server/cyberhex-code/test/server.php b/src/server/cyberhex-code/test/server.php index 4add4d0..412762a 100644 --- a/src/server/cyberhex-code/test/server.php +++ b/src/server/cyberhex-code/test/server.php @@ -48,12 +48,12 @@ try { //} $rpId = 'localhost'; - //if (filter_input(INPUT_GET, 'rpId')) { - // $rpId = filter_input(INPUT_GET, 'rpId', FILTER_VALIDATE_DOMAIN); - // if ($rpId === false) { - // throw new Exception('invalid relying party ID'); - // } - //} + if (filter_input(INPUT_GET, 'rpId')) { + $rpId = filter_input(INPUT_GET, 'rpId', FILTER_VALIDATE_DOMAIN); + if ($rpId === false) { + throw new Exception('invalid relying party ID'); + } + } // types selected on front end //$typeUsb = !!filter_input(INPUT_GET, 'type_usb');