Skip to content

Tamper: Pad a string

Plugin ID: eca_tamper_condition:str_pad

Available since: 1.0.0

Pad a string

Fields

Comparison operator — config key: operator

The available comparison operators like equals or less than.
When using the "Defined by token" option, make sure there is a token with this name: eca_tamper_condition:str_pad_operator

Type: select · Required: no · Default: equal

Allowed values: equal, beginswith, endswith, contains, greaterthan, lessthan, atmost, atleast, _eca_token, ''

Comparison type — config key: type

The type of the comparison.
When using the "Defined by token" option, make sure there is a token with this name: eca_tamper_condition:str_pad_type

Type: select · Required: no · Default: value

Allowed values: value, natural, numeric, lexical, count, _eca_token, ''

Case sensitive comparison — config key: case

Compare the values based on case sensitivity.

Type: checkbox · Required: no · Default: false

Negate the condition — config key: negate

Negates the condition. Makes TRUE to FALSE and vice versa.

Type: checkbox · Required: no · Default: false

Pad length — config key: pad_length

If the input value has a length less than this, it will use the string below to increase the length.

Type: number · Required: no · Default: 10

Pad string — config key: pad_string

The string to use for padding. If blank, a space will be used.

Type: textfield · Required: no · Default:

Pad type — config key: pad_type

Type: radios · Required: no · Default: 1

Allowed values: 1, 0, 2

Data to be tampered — config key: left

Type: textarea · Required: yes · Default: empty string

Data to compare with — config key: right

Type: textarea · Required: yes · Default: empty string