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

Commit 96fa759

Browse files
committed
Fixed the NoState error
* Fixed the NoState error if the state in request is empty.
1 parent b1f2e0c commit 96fa759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Disco.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(array $metadataSets, $instance)
2929

3030
parse_str(parse_url($this->returnURL)['query'], $query);
3131
$id = explode(":", $query['AuthID'])[0];
32-
$state = SimpleSAML_Auth_State::loadState($id, 'saml:sp:sso');
32+
$state = SimpleSAML_Auth_State::loadState($id, 'saml:sp:sso', true);
3333
$this->originalsp = $state['SPMetadata'];
3434
$this->service = new sspmod_perun_IdpListsServiceCsv();
3535
$this->whitelist = $this->service->listToArray("whitelist");

0 commit comments

Comments
 (0)