Makes operator to use string_view

This commit is contained in:
Felipe Zimmerle
2019-03-05 12:26:44 -03:00
parent 96efe83174
commit fc24f34843
85 changed files with 1954 additions and 298 deletions

View File

@@ -444,12 +444,12 @@ std::string Lua::applyTransformations(lua_State *L, Transaction *t,
in.assign(newVar.c_str(), newVar.size());
tfn->execute(t, in, out);
newVar.assign(out.c_str(), out.size());
delete tfn;
} else {
ms_dbg_a(t, 1,
"SecRuleScript: Invalid transformation function: " \
+ std::string(name));
}
delete tfn;
}
return newVar;