Refactoring: rename evaluate to execute on actions

This commit is contained in:
Felipe Zimmerle
2019-02-25 21:47:51 -03:00
parent 35a341e473
commit 2331976238
168 changed files with 230 additions and 237 deletions

View File

@@ -440,7 +440,7 @@ std::string Lua::applyTransformations(lua_State *L, Transaction *t,
"t:" + std::string(name));
// FIXME: transformation is not yet returning null.
if (tfn) {
newVar = tfn->evaluate(newVar, t);
newVar = tfn->execute(newVar, t);
} else {
ms_dbg_a(t, 1,
"SecRuleScript: Invalid transformation function: " \
@@ -462,7 +462,7 @@ std::string Lua::applyTransformations(lua_State *L, Transaction *t,
// FIXME: transformation is not yet returning null.
if (tfn) {
newVar = tfn->evaluate(newVar, t);
newVar = tfn->execute(newVar, t);
delete tfn;
} else {
ms_dbg_a(t, 1, "SecRuleScript: Invalid transformation function: " \