We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ead2a1 commit c42fd58Copy full SHA for c42fd58
lib/Saml2/Utils.php
@@ -762,8 +762,9 @@ public static function getStatus($dom)
762
763
$messageEntry = self::query($dom, '/samlp:Response/samlp:Status/samlp:StatusMessage', $statusEntry->item(0));
764
if ($messageEntry->length == 0) {
765
- if ($codeEntry->length > 1) {
766
- $status['msg'] = $codeEntry->item(1)->getAttribute('Value');
+ $subCodeEntry = self::query($dom, '/samlp:Response/samlp:Status/samlp:StatusCode/samlp:StatusCode', $statusEntry->item(0));
+ if ($subCodeEntry->length > 0) {
767
+ $status['msg'] = $subCodeEntry->item(0)->getAttribute('Value');
768
} else {
769
$status['msg'] = '';
770
}
0 commit comments