mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 09:55:28 +03:00
Refactoring: rename evaluate to execute on actions
This commit is contained in:
@@ -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: " \
|
||||
|
||||
Reference in New Issue
Block a user