From 6a3380620dc90e2db8a05155cd8b419b77baab86 Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Tue, 15 Mar 2011 14:29:01 +0000
Subject: [PATCH] SAML2_Utils: Don't replace ID in messages and assertions
 during signing.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2778 44740490-163a-0410-bde0-09ae8108e29a
---
 lib/SAML2/Utils.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/SAML2/Utils.php b/lib/SAML2/Utils.php
index a63f97612..ffc7b9b94 100644
--- a/lib/SAML2/Utils.php
+++ b/lib/SAML2/Utils.php
@@ -280,7 +280,7 @@ class SAML2_Utils {
 			array($root),
 			XMLSecurityDSig::SHA1,
 			array('http://www.w3.org/2000/09/xmldsig#enveloped-signature', XMLSecurityDSig::EXC_C14N),
-			array('id_name' => 'ID')
+			array('id_name' => 'ID', 'overwrite' => FALSE)
 			);
 
 		$objXMLSecDSig->sign($key);
-- 
GitLab