X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FSystem.Configuration%2FConfigHelper.cs;h=89adbe2589101044f97e5213389bd42f7dd8bb65;hb=69f207ee9e4f440e66e98bf5f685807f6527c39d;hp=8fa7ce06e6ffe3a14ee9381897a655e723353119;hpb=c39d7ce9985a7067c1cbf44188007c9433901940;p=mono.git diff --git a/mcs/class/System/System.Configuration/ConfigHelper.cs b/mcs/class/System/System.Configuration/ConfigHelper.cs index 8fa7ce06e6f..89adbe25891 100644 --- a/mcs/class/System/System.Configuration/ConfigHelper.cs +++ b/mcs/class/System/System.Configuration/ConfigHelper.cs @@ -138,8 +138,11 @@ namespace System.Configuration string nameAtt, string valueAtt) { - if (region.Attributes != null && region.Attributes.Count != 0) - throw new ConfigurationException ("Unknown attribute", region); + if (region.Attributes != null && region.Attributes.Count != 0) { + if (region.Attributes.Count != 1 || region.Attributes[0].Name != "xmlns") { + throw new ConfigurationException ("Unknown attribute", region); + } + } XmlNode keyNode; XmlNode valueNode;