mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
63 lines
852 B
Perl
63 lines
852 B
Perl
### Empty
|
|
{
|
|
type => "tfn",
|
|
name => "removeNulls",
|
|
input => "",
|
|
output => "",
|
|
ret => 0,
|
|
},
|
|
|
|
### Nothing
|
|
{
|
|
type => "tfn",
|
|
name => "removeNulls",
|
|
input => "TestCase",
|
|
output => "TestCase",
|
|
ret => 0,
|
|
},
|
|
{
|
|
type => "tfn",
|
|
name => "removeNulls",
|
|
input => "Test\x01Case",
|
|
output => "Test\x01Case",
|
|
ret => 0,
|
|
},
|
|
|
|
|
|
### Basics
|
|
{
|
|
type => "tfn",
|
|
name => "removeNulls",
|
|
input => "\0TestCase",
|
|
output => "TestCase",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "tfn",
|
|
name => "removeNulls",
|
|
input => "Test\0Case",
|
|
output => "TestCase",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "tfn",
|
|
name => "removeNulls",
|
|
input => "Test\0\0Case",
|
|
output => "TestCase",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "tfn",
|
|
name => "removeNulls",
|
|
input => "TestCase\0",
|
|
output => "TestCase",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "tfn",
|
|
name => "removeNulls",
|
|
input => "\0Test\0Case\0",
|
|
output => "TestCase",
|
|
ret => 1,
|
|
},
|