diff --git a/lib/Saml2/AuthnRequest.php b/lib/Saml2/AuthnRequest.php index c112a400..86fbe494 100644 --- a/lib/Saml2/AuthnRequest.php +++ b/lib/Saml2/AuthnRequest.php @@ -133,7 +133,7 @@ public function __construct(OneLogin_Saml2_Settings $settings, $forceAuthn = fal $spEntityId = htmlspecialchars($spData['entityId'], ENT_QUOTES); $acsUrl = htmlspecialchars($spData['assertionConsumerService']['url'], ENT_QUOTES); - $destination = $this->_settings->getIdPSSOUrl(); + $destination = htmlspecialchars($this->_settings->getIdPSSOUrl(), ENT_QUOTES); $request = <<{$sessionIndex}" : ""; $spEntityId = htmlspecialchars($spData['entityId'], ENT_QUOTES); - $destination = $this->_settings->getIdPSLOUrl(); + $destination = htmlspecialchars($this->_settings->getIdPSLOUrl(), ENT_QUOTES); $logoutRequest = <<_settings->getIdPSLOResponseUrl(); + $destination = htmlspecialchars($this->_settings->getIdPSLOResponseUrl(), ENT_QUOTES); $logoutResponse = <<