actions: Compute the rule association during rules load

This commit is contained in:
Felipe Zimmerle
2020-05-18 15:08:17 -03:00
parent 9dcedd498f
commit c7a78926ee
81 changed files with 835 additions and 409 deletions

View File

@@ -26,13 +26,8 @@ namespace modsecurity {
namespace actions {
bool SetSID::init(std::string *error) {
return true;
}
bool SetSID::execute(RuleWithActions *rule, Transaction *t) {
std::string colNameExpanded(m_string->evaluate(t));
std::string colNameExpanded(getEvaluatedRunTimeString(t));
ms_dbg_a(t, 8, "Session ID initiated with value: \'"
+ colNameExpanded + "\'.");
@@ -42,5 +37,6 @@ bool SetSID::execute(RuleWithActions *rule, Transaction *t) {
return true;
}
} // namespace actions
} // namespace modsecurity