X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FMono.Xml%2FSecurityParser.cs;h=49919b9779d1c53fcba30ea571a8cad403cb5bfe;hb=b59125ca81c89f8e01752cc25aaf48a61e7df85e;hp=2e8b67595143a446bf89b867d64370bce93a81f6;hpb=2007998771b1c4d9e762943676d7959daaf74385;p=mono.git diff --git a/mcs/class/corlib/Mono.Xml/SecurityParser.cs b/mcs/class/corlib/Mono.Xml/SecurityParser.cs index 2e8b6759514..49919b9779d 100644 --- a/mcs/class/corlib/Mono.Xml/SecurityParser.cs +++ b/mcs/class/corlib/Mono.Xml/SecurityParser.cs @@ -91,7 +91,7 @@ namespace Mono.Xml { // attributes int n = attrs.Length; for (int i=0; i < n; i++) - current.AddAttribute (attrs.GetName (i), attrs.GetValue (i)); + current.AddAttribute (attrs.GetName (i), SecurityElement.Escape (attrs.GetValue (i))); } public void OnEndElement (string name) @@ -101,7 +101,7 @@ namespace Mono.Xml { public void OnChars (string ch) { - current.Text = ch; + current.Text = SecurityElement.Escape (ch); } public void OnEndParsing (SmallXmlParser parser) {}