mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 18:30:35 +03:00
Makes operator to use string_view
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user