24 references to RequestValidationSource
System.Web (24)
HttpRequest.cs (21)
1404
ValidateString(path, null,
RequestValidationSource
.Path);
1607
ValidateString(pathInfo, null,
RequestValidationSource
.PathInfo);
1840
ValidateString(_rawUrl, null,
RequestValidationSource
.RawUrl);
2135
ValidateHttpValueCollection(_queryString,
RequestValidationSource
.QueryString);
2180
ValidateHttpValueCollection(_form,
RequestValidationSource
.Form);
2233
ValidateHttpValueCollection(_headers,
RequestValidationSource
.Headers);
2687
private void ValidateString(string value, string collectionKey,
RequestValidationSource
requestCollection) {
2726
private static string GetRequestValidationSourceName(
RequestValidationSource
requestCollection) {
2728
case
RequestValidationSource
.Cookies: return "Request.Cookies";
2729
case
RequestValidationSource
.Files: return "Request.Files";
2730
case
RequestValidationSource
.Form: return "Request.Form";
2731
case
RequestValidationSource
.Headers: return "Request.Headers";
2732
case
RequestValidationSource
.Path: return "Request.Path";
2733
case
RequestValidationSource
.PathInfo: return "Request.PathInfo";
2734
case
RequestValidationSource
.QueryString: return "Request.QueryString";
2735
case
RequestValidationSource
.RawUrl: return "Request.RawUrl";
2742
private void ValidateHttpValueCollection(HttpValueCollection collection,
RequestValidationSource
requestCollection) {
2770
cc.EnableGranularValidation((key, value) => ValidateString(value, key,
RequestValidationSource
.Cookies));
2781
ValidateString(val, key,
RequestValidationSource
.Cookies);
2789
col.EnableGranularValidation((key, value) => ValidateString(value, "filename",
RequestValidationSource
.Files));
2795
ValidateString(filename, "filename",
RequestValidationSource
.Files);
Util\RequestValidator.cs (3)
67
public bool InvokeIsValidRequestString(HttpContext context, string value,
RequestValidationSource
requestValidationSource, string collectionKey, out int validationFailureIndex) {
77
protected internal virtual bool IsValidRequestString(HttpContext context, string value,
RequestValidationSource
requestValidationSource, string collectionKey, out int validationFailureIndex) {
78
if (requestValidationSource ==
RequestValidationSource
.Headers) {