t:escapeSeqDecode

Description: Decodes ANSI C escape sequences in a string back to their actual characters.

This transformation function decodes ANSI C escape sequences: \a, \b, \f, \n, \r, \t, \v, \, ?, ', ", \xHH (hexadecimal), and \0OOO (octal). Invalid encodings are preserved in the output unchanged.

Syntax: t:escapeSeqDecode

Implemented: Yes

Example:

SecRule ARGS "@rx test" "id:1001,t:escapeSeqDecode"