On Monday 13 February 2006 12:49, Luca wrote:
> Il Mon, Feb 13, 2006 at 11:20:53AM -0900, Joshua Kugler ha scritto:
> > On Monday 13 February 2006 11:12, Alex Chudnovsky wrote:
> > > Edward C. Eisenbrey wrote:
> > > >using System.Text.RegularExpressions;
> > > >
> > > >static bool CheckString (stri
Il Mon, Feb 13, 2006 at 11:20:53AM -0900, Joshua Kugler ha scritto:
> On Monday 13 February 2006 11:12, Alex Chudnovsky wrote:
> > Edward C. Eisenbrey wrote:
> > >using System.Text.RegularExpressions;
> > >
> > >static bool CheckString (string val)
> > >{
> > > Regex regex = new Regex("<[a-zA-Z\
rn match.Success;
}
-Original Message-
From: Alex Chudnovsky [mailto:[EMAIL PROTECTED]
Sent: Monday, February 13, 2006 3:12 PM
Cc: mono-devel-list@lists.ximian.com
Subject: Re: [Mono-dev] MS/Mono incompatibility in
System.Web.HttpRequest
Edward C. Eisenbrey wrote:
>using System.Text
On Monday 13 February 2006 11:12, Alex Chudnovsky wrote:
> Edward C. Eisenbrey wrote:
> >using System.Text.RegularExpressions;
> >
> >static bool CheckString (string val)
> >{
> > Regex regex = new Regex("<[a-zA-Z\\!]+");
> > Match match = regex.Match(val);
> > return match.Success;
> >
Edward C. Eisenbrey wrote:
using System.Text.RegularExpressions;
static bool CheckString (string val)
{
Regex regex = new Regex("<[a-zA-Z\\!]+");
Match match = regex.Match(val);
return match.Success;
}
Pardon my instrusion, but would it not be better performance wise to
The input validation that occurs in the CheckString method in
/mcs/class/System.Web/System.Web/HttpRequest.cs is far more strict than
Microsoft's. In this case, I would tend to say that Mono's validation
is safer, but it might be excessive. After extensive testing, here is
the CheckString method