[Mono-bugs] [Bug 333725] New: SecurityElement.FromString removed character references

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Oct 14 10:47:03 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=333725#c38

           Summary: SecurityElement.FromString removed character references
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: gert.driesen at pandora.be
         QAContact: mono-bugs at ximian.com
          Found By: ---


SecurityElement.FromString (actually SmallXmlParser) partially remove all
character references.

To reproduce, compile and run the following code snippet:

using System;
using System.Security;

class Program
{
  static void Main ()
  {
    string xml = "<v n=\"name&#38;address\">Suds&#x26;Soda&#38;</v>";
    SecurityElement se = SecurityElement.FromString (xml);
    Console.WriteLine ("#1 => " + se.Attribute ("n"));
    Console.WriteLine ("#2 => " + se.Text);
  }
}

Expected result:

#1 => name&#38;address
#2 => Suds&#x26;Soda&#38;

Actual result:

#1 => name;address
#2 => Suds;Soda;


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list