From d5eefc275d43f238b9250fd52ba9e82bb09be352 Mon Sep 17 00:00:00 2001 From: bseddon Date: Tue, 12 Jul 2022 20:05:45 +0100 Subject: [PATCH] Adds support for base64 transforms --- src/XMLSecurityDSig.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/XMLSecurityDSig.php b/src/XMLSecurityDSig.php index c80e790..75a583d 100644 --- a/src/XMLSecurityDSig.php +++ b/src/XMLSecurityDSig.php @@ -657,7 +657,9 @@ public function processTransforms( $refNode, $objData, $includeCommentNodes = tr break; case self::BASE64: - throw new \Exception('BASE64 Transform is not supported'); + // throw new \Exception('BASE64 Transform is not supported'); + $objData = base64_decode($objData->textContent); + continue 2; case self::XSLT: throw new \Exception('XSLT Transform is not supported');