Skip to content

Commit 2963ee4

Browse files
authored
Merge pull request SAML-Toolkits#183 from samstoller/master
Fix strpos bug when decrypting assertions
2 parents eb6cfbc + b98c0d3 commit 2963ee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Saml2/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ protected function _decryptAssertion($dom)
10011001

10021002
if (strpos($encryptedAssertion->tagName, 'saml2:') !== false) {
10031003
$ns = 'xmlns:saml2';
1004-
} else if (strpos($encryptedAssertion->tagName, 'saml:') != false) {
1004+
} else if (strpos($encryptedAssertion->tagName, 'saml:') !== false) {
10051005
$ns = 'xmlns:saml';
10061006
} else {
10071007
$ns = 'xmlns';

0 commit comments

Comments
 (0)