f17cba03ef101b406dbb9679924a5d5b67f0dd67
[mono.git] / mcs / class / System.Web / System.Web / HttpRequestValidationException.cs
1 //
2 // System.Web.HttpRequestValidationException
3 //
4 // Authors:
5 //      Gonzalo Paniagua Javier (gonzalo@ximian.com)
6 //
7 // (c) 2003 Novell, Inc. (http://www.novell.com)
8 //
9 #if NET_1_1
10 namespace System.Web
11 {
12         public sealed class HttpRequestValidationException : HttpException
13         {
14                 internal HttpRequestValidationException (string msg) : base (msg)
15                 {
16                 }
17
18                 internal override string Description {
19                         get {
20                                 return  "Request validation detected a potentially dangerous input value " +
21                                         "from the client and aborted the request. This might be an attemp of " +
22                                         "using cross-site scripting to compromise the security of your site. " +
23                                         "You can disable request validation using the 'validateRequest=false' " +
24                                         "attribute in your page or setting it in your machine.config or web.config " +
25                                         "configuration files. If you disable it, you're encouraged to properly " +
26                                         "check the input values you get from the client.<br>\r\n" +
27                                         "You can get more information on input validation " +
28                                         "<a href=\"http://www.cert.org/tech_tips/malicious_code_mitigation.html\">" +
29                                         "here</a>.";
30                         }
31                 }
32         }
33 }
34 #endif