mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Refactoring on the Rule class
This commit is contained in:
@@ -54,8 +54,7 @@ bool Rx::evaluate(Transaction *transaction, Rule *rule,
|
||||
}
|
||||
|
||||
matches = re->searchAll(input);
|
||||
if (rule && rule->getActionsByName("capture",
|
||||
transaction).size() > 0 && transaction) {
|
||||
if (rule && rule->m_containsCaptureAction && transaction) {
|
||||
int i = 0;
|
||||
matches.reverse();
|
||||
for (const SMatch& a : matches) {
|
||||
|
Reference in New Issue
Block a user