Skip to content

Commit cd7ced0

Browse files
committed
Fix previous commit
1 parent 3738c11 commit cd7ced0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/Saml2/Auth.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,8 @@ public function buildRequestSignature($samlRequest, $relayState, $signAlgorithm
475475
$objKey = new XMLSecurityKey($signAlgorithm, array('type' => 'private'));
476476
$objKey->loadKey($key, false);
477477

478-
if ($this->_security['lowercaseUrlencoding']) {
478+
$security = $this->_settings->getSecurityData();
479+
if ($security['lowercaseUrlencoding']) {
479480
$msg = 'SAMLRequest='.rawurlencode($samlRequest);
480481
if (isset($relayState)) {
481482
$msg .= '&RelayState='.rawurlencode($relayState);
@@ -518,7 +519,8 @@ public function buildResponseSignature($samlResponse, $relayState, $signAlgorith
518519
$objKey = new XMLSecurityKey($signAlgorithm, array('type' => 'private'));
519520
$objKey->loadKey($key, false);
520521

521-
if ($this->_security['lowercaseUrlencoding']) {
522+
$security = $this->_settings->getSecurityData();
523+
if ($security['lowercaseUrlencoding']) {
522524
$msg = 'SAMLResponse='.rawurlencode($samlResponse);
523525
if (isset($relayState)) {
524526
$msg .= '&RelayState='.rawurlencode($relayState);

0 commit comments

Comments
 (0)