[Mono-bugs] [Bug 346762] New: Request.Params.GetValues, difference between . NET and Mono
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Dec 7 05:25:35 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=346762
Summary: Request.Params.GetValues, difference between .NET and
Mono
Product: Mono: Class Libraries
Version: SVN
Platform: i686
OS/Version: RHEL 4
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: mirko-novell at nextware.it
QAContact: mono-bugs at ximian.com
Found By: ---
This is the test code:
<%@ Page Language="C#" %>
<html>
<body>
<%
string[] P=Request.Params.GetValues("Pippo");
Response.Write("Lenght: "+P.Length+"<BR>");
for (int I=0;I<P.Length;I++) {
Response.Write("P["+I+"]: "+P[I]+"<BR>");
}
%>
</body>
</html>
On .NET, with this URL:
/TestVirgola.aspx?Pippo=ciao,ciao&Pippo=ciao
I have:
Lenght: 2
P[0]: ciao,ciao
P[1]: ciao
On Mono with the same URL I have:
Lenght: 3
P[0]: ciao
P[1]: ciao
P[2]: ciao
With Mono implementation I can't handle commas in URL with GetValues.
In HttpParamsCollection.cs I found "return value.Split (',');" on
"public override string [] GetValues (string name)".
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list