[Mono-list] bug in HttpServerUtility.Execute (includes corrected code)

Gonzalo Paniagua Javier gonzalo@ximian.com
Wed, 20 Aug 2003 01:53:11 +0200


El mar, 19-08-2003 a las 23:43, Rich Alimi escribió:
> I was working with the Server.Execute method and I have found a bug in
> the HttpServerUtility's Execute method:
> 
> public void Execute (string path, TextWriter)
> {
> 	// ...
> 	if (qmark != 1) {
> 		// the order of these two statements should be swapped
> 		// As they are, the string.Substring method produces an
> 		// ArgumentOutOfRange exception on the "query = ..."
> statement
> 		path = path.Substring (0, qmark);
> 		query = path.Substring (qmark + 1);

Right. It's fixed in CVS now.
Thanks!

-Gonzalo