Expand description
Transformation functions for ModSecurity.
Structs§
- Base64
Decode - Base64 decode transformation.
- Base64
Decode Ext - Extended base64 decode (handles URL-safe base64).
- Base64
Encode - Base64 encode transformation.
- CmdLine
- Command line normalization transformation.
- Compress
Whitespace - Compress whitespace transformation.
- CssDecode
- CSS decode transformation.
- Escape
SeqDecode - Escape sequence decode transformation.
- HexDecode
- Hex decode transformation.
- HexEncode
- Hex encode transformation.
- Html
Entity Decode - HTML entity decode transformation.
- JsDecode
- JavaScript decode transformation.
- Length
- Length transformation (returns the length of the input).
- Lowercase
- Lowercase transformation.
- Md5
- MD5 hash transformation.
- None_
- None transformation (clears the transformation chain).
- Normalize
Path - Normalize path transformation (Unix-style).
- Normalize
Path Win - Normalize path transformation (Windows-style).
- Remove
Comments - Remove comments transformation.
- Remove
Comments Char - Remove comment characters transformation.
- Remove
Nulls - Remove null bytes transformation.
- Remove
Whitespace - Remove whitespace transformation.
- Replace
Comments - Replace comments transformation (replaces /* … */ with space).
- Replace
Nulls - Replace null bytes with spaces transformation.
- Sha1
- SHA1 hash transformation.
- Sha256
- SHA-256 hash transformation.
- SqlHex
Decode - SQL hex decode transformation.
- Transformation
Pipeline - A pipeline of transformations to apply in sequence.
- Trim
- Trim transformation.
- Trim
Left - Trim left transformation.
- Trim
Right - Trim right transformation.
- Uppercase
- Uppercase transformation.
- UrlDecode
- URL decode transformation.
- UrlDecode
Uni - URL decode with Unicode support.
- UrlEncode
- URL encode transformation.
- Utf8
ToUnicode - UTF-8 to Unicode transformation (pass-through for now).
Traits§
- Transformation
- Trait for transformations.
Functions§
- create_
transformation - Create a transformation from a name.