From: Jonathan Gagnon Date: Fri, 12 Jul 2013 18:48:55 +0000 (-0400) Subject: GetIdElement must look for "ID" and "id". Fixes #4938 X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=05d7064c1c43544743a4c4e50962f5280b962306;p=mono.git GetIdElement must look for "ID" and "id". Fixes #4938 --- diff --git a/mcs/class/System.Security/System.Security.Cryptography.Xml/SignedXml.cs b/mcs/class/System.Security/System.Security.Cryptography.Xml/SignedXml.cs index 8293e1d4f99..05c2b091d98 100644 --- a/mcs/class/System.Security/System.Security.Cryptography.Xml/SignedXml.cs +++ b/mcs/class/System.Security/System.Security.Cryptography.Xml/SignedXml.cs @@ -691,6 +691,12 @@ namespace System.Security.Cryptography.Xml { if (xel == null) { // search an "undefined" ID xel = (XmlElement) document.SelectSingleNode ("//*[@Id='" + idValue + "']"); + if (xel == null) { + xel = (XmlElement) document.SelectSingleNode ("//*[@ID='" + idValue + "']"); + if (xel == null) { + xel = (XmlElement) document.SelectSingleNode ("//*[@id='" + idValue + "']"); + } + } } return xel; }