mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
109 lines
1.4 KiB
Perl
109 lines
1.4 KiB
Perl
### Empty
|
|
{
|
|
type => "op",
|
|
name => "containsWord",
|
|
param => "",
|
|
input => "",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "containsWord",
|
|
param => "TestCase",
|
|
input => "",
|
|
ret => 0,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "containsWord",
|
|
param => "",
|
|
input => "TestCase",
|
|
ret => 1,
|
|
},
|
|
|
|
### General
|
|
{
|
|
type => "op",
|
|
name => "containsWord",
|
|
param => "abc",
|
|
input => "abcdefghi",
|
|
ret => 0,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "containsWord",
|
|
param => "def",
|
|
input => "abcdefghi",
|
|
ret => 0,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "containsWord",
|
|
param => "ghi",
|
|
input => "abcdefghi",
|
|
ret => 0,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "containsWord",
|
|
param => "abc",
|
|
input => "abc def ghi",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "containsWord",
|
|
param => "def",
|
|
input => "abc def ghi",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "containsWord",
|
|
param => "ghi",
|
|
input => "abc def ghi",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "containsWord",
|
|
param => "abc",
|
|
input => "abc\0def ghi",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "containsWord",
|
|
param => "def",
|
|
input => "abc\0def ghi",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "containsWord",
|
|
param => "x",
|
|
input => "x",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "containsWord",
|
|
param => "x",
|
|
input => " x ",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "containsWord",
|
|
param => "y",
|
|
input => "xyz",
|
|
ret => 0,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "containsWord",
|
|
param => "hiding",
|
|
input => "hidingX<-not on word boundary, but is later on->hiding",
|
|
ret => 1,
|
|
},
|