actions: Removes Rule parameter from runtime execute

Generals organization on the Action class
This commit is contained in:
Felipe Zimmerle
2020-05-18 21:33:03 -03:00
parent c7a78926ee
commit 2c20f365e8
188 changed files with 3096 additions and 2758 deletions

View File

@@ -13,20 +13,24 @@
*
*/
#include "src/actions/set_sid.h"
#include <iostream>
#include <string>
#include "modsecurity/transaction.h"
#include "modsecurity/rule.h"
/**
* FIXME: rules_set.h inclusion is here due to ms_dbg_a.
* It should be removed.
*/
#include "modsecurity/rules_set.h"
namespace modsecurity {
namespace actions {
bool SetSID::execute(RuleWithActions *rule, Transaction *t) {
bool SetSID::execute(Transaction *t) noexcept {
std::string colNameExpanded(getEvaluatedRunTimeString(t));
ms_dbg_a(t, 8, "Session ID initiated with value: \'"
+ colNameExpanded + "\'.");