Refactoring: rename evaluate to execute on actions

This commit is contained in:
Felipe Zimmerle
2019-02-25 21:47:51 -03:00
parent f605359ca5
commit 55b68fdebc
170 changed files with 234 additions and 239 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: " \