Class SanitizationFeatures
- Namespace
- Excalibur.Dispatch.Options.Middleware
- Assembly
- Excalibur.Dispatch.dll
Configures which sanitization features are active in InputSanitizationOptions.
public sealed class SanitizationFeatures
- Inheritance
-
SanitizationFeatures
- Inherited Members
- Extension Methods
Properties
NormalizeUnicode
Gets or sets a value indicating whether to normalize Unicode characters.
public bool NormalizeUnicode { get; set; }
Property Value
- bool
Default is true.
PreventPathTraversal
Gets or sets a value indicating whether to prevent path traversal attacks.
public bool PreventPathTraversal { get; set; }
Property Value
- bool
Default is true.
PreventSqlInjection
Gets or sets a value indicating whether to prevent SQL injection.
public bool PreventSqlInjection { get; set; }
Property Value
- bool
Default is true.
PreventXss
Gets or sets a value indicating whether to prevent XSS attacks.
public bool PreventXss { get; set; }
Property Value
- bool
Default is true.
RemoveHtmlTags
Gets or sets a value indicating whether to remove HTML tags or encode them.
public bool RemoveHtmlTags { get; set; }
Property Value
- bool
Default is true (remove tags).
RemoveNullBytes
Gets or sets a value indicating whether to remove null bytes.
public bool RemoveNullBytes { get; set; }
Property Value
- bool
Default is true.
TrimWhitespace
Gets or sets a value indicating whether to trim whitespace from strings.
public bool TrimWhitespace { get; set; }
Property Value
- bool
Default is true.