PDA

Click to See Complete Forum and Search --> : can you rely on validateRequest?


Lunatic3
Jun 21st, 2003, 04:27 PM
Can you really depnd on validateRequest to catch all the malicious inputs from the client? If yes, where I can catch the exception produced by that? I mean the HttpRequestValidationException.

DevGrp
Jun 21st, 2003, 08:11 PM
Well, you should'nt really rely on that aone. You can use Server.HtmlEncode to encode the input, or use regular expressions to check for malicious input.

Lunatic3
Jun 22nd, 2003, 12:10 AM
I am aware of HtmlEncode and Regex but when validateRequest is not set to false in page directives then when you submit the page back to server it catches the malicious input before you can send them to HtmlEncode or Regex.