[asp.net] Added internal property InputValidationEnabled to report whether the user...
authorMarek Habersack <grendel@twistedcode.net>
Mon, 17 Jan 2011 12:12:16 +0000 (13:12 +0100)
committerMarek Habersack <grendel@twistedcode.net>
Mon, 17 Jan 2011 13:47:07 +0000 (14:47 +0100)
mcs/class/System.Web/System.Web/HttpRequest.cs

index 8c1e488e6c1ae5316e462759b92652259566b42f..7811094dc8dd946984b203b4b2318c91d38974b7 100644 (file)
@@ -108,6 +108,7 @@ namespace System.Web
                static readonly UrlMappingCollection urlMappings;
                readonly static char [] queryTrimChars = {'?'};
 #if NET_4_0
+               bool inputValidationEnabled;
                RequestContext requestContext;
                
                static bool validateRequestNewMode;
@@ -115,6 +116,10 @@ namespace System.Web
                        get { return validateRequestNewMode; }
                }
 
+               internal bool InputValidationEnabled {
+                       get { return inputValidationEnabled; }
+               }
+               
                private static char[] RequestPathInvalidCharacters {
                        get; set;
                }