mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds sanity check to confirm that the rule has an ID and it is not duplicated
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
SecRule ARGS "@contains config_example" "id:10,pass,t:trim"
|
||||
SecRule ARGS "@missingOperator config_example" "id:10,pass,t:trim"
|
||||
SecRule ARGS "@missingOperator config_example" "id:11,pass,t:trim"
|
||||
|
@@ -1,3 +1,2 @@
|
||||
Include test-cases/data/config_example2.txt
|
||||
SecRule ARGS "@contains config_example" "id:10,pass,t:trim"
|
||||
Include test-cases/data/config_example2.txt
|
||||
SecRule ARGS "@contains config_example" "id:101,pass,t:trim"
|
@@ -1,2 +1 @@
|
||||
SecRule ARGS "@contains config_example2" "id:20,pass,t:trim"
|
||||
|
||||
SecRule ARGS "@contains config_example2" "id:40,pass,t:trim"
|
2
test/test-cases/data/config_example3.txt
Normal file
2
test/test-cases/data/config_example3.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
Include test-cases/data/config_example2.txt
|
||||
SecRule ARGS "@contains config_example" ops "id:1000,pass,t:trim"
|
Reference in New Issue
Block a user