Update operator verifyCC to use Regex class

This commit is contained in:
WGH
2019-01-30 14:46:11 +03:00
committed by Felipe Zimmerle
parent 55b81f0e10
commit 9c3c4dc587
3 changed files with 34 additions and 82 deletions

View File

@@ -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\""
]
}
]