mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-16 01:22:18 +03:00
Update operator verifyCC to use Regex class
This commit is contained in:
@@ -42,5 +42,18 @@
|
||||
"SecRuleEngine On",
|
||||
"SecRule ARGS \"@verifycc \\d{13,16}\" \"id:1,phase:2,capture,pass,t:trim\""
|
||||
]
|
||||
},
|
||||
{
|
||||
"enabled":1,
|
||||
"version_min":300000,
|
||||
"version_max":0,
|
||||
"title":"Testing Operator :: @verifycc with invalid regular expression",
|
||||
"expected":{
|
||||
"parser_error":"Rules error.*Failed to compile regular expression \\\\d\\{13\\,16\\}\\("
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecRule ARGS \"@verifycc \\d{13,16}(\" \"id:1,phase:2,pass,t:trim\""
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user