Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 895edcc

Browse files
committed
Check if the test.sp is set
1 parent 8687a65 commit 895edcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Auth/Process/WarningTestSP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function __construct($config, $reserved)
1414
}
1515
public function process(&$request)
1616
{
17-
if ($request["SPMetadata"]["test.sp"] === true) {
17+
if (isset($request["SPMetadata"]["test.sp"]) && $request["SPMetadata"]["test.sp"] === true) {
1818
$id = SimpleSAML_Auth_State::saveState($request, 'perun:warningTestSP');
1919
$url = SimpleSAML_Module::getModuleURL('perun/warning_test_sp_page.php');
2020
\SimpleSAML\Utils\HTTP::redirectTrustedURL($url, array('StateId' => $id));

0 commit comments

Comments
 (0)