mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
74 lines
942 B
Perl
74 lines
942 B
Perl
### Empty
|
|
{
|
|
type => "op",
|
|
name => "contains",
|
|
param => "",
|
|
input => "",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "contains",
|
|
param => "TestCase",
|
|
input => "",
|
|
ret => 0,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "contains",
|
|
param => "",
|
|
input => "TestCase",
|
|
ret => 1,
|
|
},
|
|
|
|
### General
|
|
{
|
|
type => "op",
|
|
name => "contains",
|
|
param => "abc",
|
|
input => "abcdefghi",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "contains",
|
|
param => "def",
|
|
input => "abcdefghi",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "contains",
|
|
param => "ghi",
|
|
input => "abcdefghi",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "contains",
|
|
param => "ghij",
|
|
input => "abcdefghi",
|
|
ret => 0,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "contains",
|
|
param => "x",
|
|
input => "x",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "contains",
|
|
param => "y",
|
|
input => "xyz",
|
|
ret => 1,
|
|
},
|
|
{
|
|
type => "op",
|
|
name => "contains",
|
|
param => "hiding",
|
|
input => "hidinX<-not quite, but is later on->hiding",
|
|
ret => 1,
|
|
},
|