Skip to content

Commit

Permalink
Merge pull request #183 from samstoller/master
Browse files Browse the repository at this point in the history
Fix strpos bug when decrypting assertions
  • Loading branch information
pitbulk authored Jan 24, 2017
2 parents eb6cfbc + b98c0d3 commit 2963ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Saml2/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ protected function _decryptAssertion($dom)

if (strpos($encryptedAssertion->tagName, 'saml2:') !== false) {
$ns = 'xmlns:saml2';
} else if (strpos($encryptedAssertion->tagName, 'saml:') != false) {
} else if (strpos($encryptedAssertion->tagName, 'saml:') !== false) {
$ns = 'xmlns:saml';
} else {
$ns = 'xmlns';
Expand Down

0 comments on commit 2963ee4

Please sign in to comment.