X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web%2FSystem.Web%2FHttpApplication.cs;h=49295dec49bd7fad2eac4b0cd8477b0fddbfe3a1;hb=f8d637595ce702376cd21a716c854bc03868ef11;hp=d9972ceddec874d60ed40d8dafba25186e78fad8;hpb=76812f9e056795102ba243175cef2f025dce871f;p=mono.git diff --git a/mcs/class/System.Web/System.Web/HttpApplication.cs b/mcs/class/System.Web/System.Web/HttpApplication.cs index d9972ceddec..49295dec49b 100644 --- a/mcs/class/System.Web/System.Web/HttpApplication.cs +++ b/mcs/class/System.Web/System.Web/HttpApplication.cs @@ -1174,21 +1174,10 @@ namespace System.Web Delegate eventHandler; if (stop_processing) yield return true; - #if NET_4_0 - if (HttpRequest.ValidateRequestNewMode) { - char[] invalidChars = HttpRequest.RequestPathInvalidCharacters; - HttpRequest req = context.Request; - if (invalidChars != null && req != null) { - string path = req.PathNoValidation; - int idx = path != null ? path.IndexOfAny (invalidChars) : -1; - if (idx != -1) - throw HttpException.NewWithCode ( - String.Format ("A potentially dangerous Request.Path value was detected from the client ({0}).", path [idx]), - WebEventCodes.RuntimeErrorValidationFailure - ); - } - } + HttpRequest req = context.Request; + if (req != null) + req.Validate (); #endif context.MapRequestHandlerDone = false; StartTimer ("BeginRequest");