mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Fixed code according to Ivan's review.
This commit is contained in:
@@ -78,3 +78,31 @@
|
||||
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,
|
||||
},
|
||||
|
Reference in New Issue
Block a user