mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 18:05:28 +03:00
Refactoring in the Rule class to make it more elegant
This commit is contained in:
@@ -26,15 +26,12 @@ bool RuleScript::evaluate(Transaction *trans) {
|
||||
|
||||
ms_dbg_a(trans, 4, " Executing script: " + m_name + ".");
|
||||
|
||||
bool containsDisruptive = false;
|
||||
|
||||
executeActionsIndependentOfChainedRuleResult(trans,
|
||||
&containsDisruptive);
|
||||
executeActionsIndependentOfChainedRuleResult(trans);
|
||||
|
||||
bool ret = m_lua->run(trans);
|
||||
|
||||
if (ret) {
|
||||
executeActionsAfterFullMatch(trans, containsDisruptive);
|
||||
executeActionsAfterFullMatch(trans);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user