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 1b705aeb54
commit d6e8352873
190 changed files with 3118 additions and 2779 deletions

View File

@@ -15,15 +15,10 @@
#include "src/actions/transformations/cmd_line.h"
#include <iostream>
#include <string>
#include <algorithm>
#include <functional>
#include <cctype>
#include <locale>
#include "modsecurity/modsecurity.h"
#include "modsecurity/transaction.h"
#include "src/actions/transformations/transformation.h"
namespace modsecurity {
@@ -31,9 +26,9 @@ namespace actions {
namespace transformations {
void CmdLine::execute(Transaction *t,
ModSecString &in,
ModSecString &out) {
void CmdLine::execute(const Transaction *t,
const ModSecString &in,
ModSecString &out) noexcept {
int space = 0;
for (auto& a : in) {