This project is read-only.

Forms with "&" in values

Oct 13, 2009 at 8:27 AM

Hi all,

I'm using C# WebServer to create a small JSON-based webservices program. Thanks to everyone involved, for such a nice project :)

I'm having problems with forms that contain "&" in their values. It seems that C# WebServer truncates the values:

For "hello&goodbye", this code:


FormValidator validator = new FormValidator(Request.Form);
string json = validator.AlphaNumeric("json", true);


Prints "hello" to the console.

Anyone ?

Form processing is not documented (at least I just couldn't find anything beyond a couple of tutorials), so maybe I'm doing something wrong.



Nov 1, 2009 at 10:39 AM

Ohhh. Seems like the query parser is a bit naughty. Should be fixed in trunk now.