Re: [Mono-dev] MS/Mono incompatibility in System.Web.HttpRequest

2006-02-13 Thread Joshua Kugler
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

Re: [Mono-dev] MS/Mono incompatibility in System.Web.HttpRequest

2006-02-13 Thread Luca
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\

RE: [Mono-dev] MS/Mono incompatibility in System.Web.HttpRequest

2006-02-13 Thread Edward C. Eisenbrey
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

Re: [Mono-dev] MS/Mono incompatibility in System.Web.HttpRequest

2006-02-13 Thread Joshua Kugler
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; > >

Re: [Mono-dev] MS/Mono incompatibility in System.Web.HttpRequest

2006-02-13 Thread Alex Chudnovsky
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

[Mono-dev] MS/Mono incompatibility in System.Web.HttpRequest

2006-02-13 Thread Edward C. Eisenbrey
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