Module transformations

Module transformations 

Source
Expand description

Transformation functions for ModSecurity.

Structs§

Base64Decode
Base64 decode transformation.
Base64DecodeExt
Extended base64 decode (handles URL-safe base64).
Base64Encode
Base64 encode transformation.
CmdLine
Command line normalization transformation.
CompressWhitespace
Compress whitespace transformation.
CssDecode
CSS decode transformation.
EscapeSeqDecode
Escape sequence decode transformation.
HexDecode
Hex decode transformation.
HexEncode
Hex encode transformation.
HtmlEntityDecode
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).
NormalizePath
Normalize path transformation (Unix-style).
NormalizePathWin
Normalize path transformation (Windows-style).
RemoveComments
Remove comments transformation.
RemoveCommentsChar
Remove comment characters transformation.
RemoveNulls
Remove null bytes transformation.
RemoveWhitespace
Remove whitespace transformation.
ReplaceComments
Replace comments transformation (replaces /* … */ with space).
ReplaceNulls
Replace null bytes with spaces transformation.
Sha1
SHA1 hash transformation.
Sha256
SHA-256 hash transformation.
SqlHexDecode
SQL hex decode transformation.
TransformationPipeline
A pipeline of transformations to apply in sequence.
Trim
Trim transformation.
TrimLeft
Trim left transformation.
TrimRight
Trim right transformation.
Uppercase
Uppercase transformation.
UrlDecode
URL decode transformation.
UrlDecodeUni
URL decode with Unicode support.
UrlEncode
URL encode transformation.
Utf8ToUnicode
UTF-8 to Unicode transformation (pass-through for now).

Traits§

Transformation
Trait for transformations.

Functions§

create_transformation
Create a transformation from a name.