mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 02:10:36 +03:00
actions: Removes Rule parameter from runtime execute
Generals organization on the Action class
This commit is contained in:
@@ -13,17 +13,13 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "src/actions/transformations/compress_whitespace.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 +27,9 @@ namespace actions {
|
||||
namespace transformations {
|
||||
|
||||
|
||||
void CompressWhitespace::execute(Transaction *t,
|
||||
ModSecString &in,
|
||||
ModSecString &out) {
|
||||
void CompressWhitespace::execute(const Transaction *t,
|
||||
const ModSecString &in,
|
||||
ModSecString &out) noexcept {
|
||||
int inWhiteSpace = 0;
|
||||
size_t i = 0;
|
||||
out.reserve(in.size());
|
||||
|
||||
Reference in New Issue
Block a user