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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to