From 370a802bf4cd2074e92c24ebc5ddd92f6e749edb Mon Sep 17 00:00:00 2001 From: William Mathewson Date: Mon, 12 Jun 2023 13:25:25 +0100 Subject: [PATCH] Forward soft argument to validate_signature When calling the `validate_document` method chain, the `soft` parameter is passed down from one method to another except in the hand off from `validate_document_with_cert` to `validate_signature`. --- lib/xml_security.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xml_security.rb b/lib/xml_security.rb index 1b1b3228..9a76f8c5 100644 --- a/lib/xml_security.rb +++ b/lib/xml_security.rb @@ -262,7 +262,7 @@ def validate_document_with_cert(idp_cert, soft = true) else base64_cert = Base64.encode64(idp_cert.to_pem) end - validate_signature(base64_cert, true) + validate_signature(base64_cert, soft) end def validate_signature(base64_cert, soft = true)