mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Adds refCounter to actions
This commit is contained in:
parent
ad05c74c3f
commit
3ee7b24928
@ -13,14 +13,18 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#endif
|
||||
|
||||
#include "modsecurity/intervention.h"
|
||||
#include "modsecurity/rule.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_ACTION_H_
|
||||
#define SRC_ACTIONS_ACTION_H_
|
||||
#ifndef HEADERS_MODSECURITY_ACTIONS_ACTION_H_
|
||||
#define HEADERS_MODSECURITY_ACTIONS_ACTION_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@ -37,6 +41,7 @@ class Action {
|
||||
: action_kind(2),
|
||||
m_isNone(false),
|
||||
m_name(""),
|
||||
m_referenceCount(0),
|
||||
m_parser_payload(""),
|
||||
temporaryAction(false) {
|
||||
set_name_and_payload(_action);
|
||||
@ -45,6 +50,7 @@ class Action {
|
||||
: action_kind(kind),
|
||||
m_isNone(false),
|
||||
m_name(""),
|
||||
m_referenceCount(0),
|
||||
m_parser_payload(""),
|
||||
temporaryAction(false) {
|
||||
set_name_and_payload(_action);
|
||||
@ -87,6 +93,17 @@ class Action {
|
||||
}
|
||||
}
|
||||
|
||||
void refCountDecreaseAndCheck() {
|
||||
this->m_referenceCount--;
|
||||
if (this->m_referenceCount == 0) {
|
||||
delete this;
|
||||
}
|
||||
}
|
||||
|
||||
void refCountIncrease() {
|
||||
this->m_referenceCount++;
|
||||
}
|
||||
|
||||
bool m_isNone;
|
||||
bool temporaryAction;
|
||||
int action_kind;
|
||||
@ -124,6 +141,9 @@ class Action {
|
||||
*/
|
||||
RunTimeOnlyIfMatchKind,
|
||||
};
|
||||
|
||||
private:
|
||||
int m_referenceCount;
|
||||
};
|
||||
|
||||
|
||||
@ -132,4 +152,4 @@ class Action {
|
||||
|
||||
#endif
|
||||
|
||||
#endif // SRC_ACTIONS_ACTION_H_
|
||||
#endif // HEADERS_MODSECURITY_ACTIONS_ACTION_H_
|
@ -31,6 +31,7 @@
|
||||
#include "modsecurity/modsecurity.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "modsecurity/rules_exceptions.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
@ -40,9 +41,6 @@ class RulesExceptions;
|
||||
namespace audit_log {
|
||||
class AuditLog;
|
||||
}
|
||||
namespace actions {
|
||||
class Action;
|
||||
}
|
||||
namespace Parser {
|
||||
class Driver;
|
||||
}
|
||||
@ -324,6 +322,7 @@ class RulesProperties {
|
||||
std::vector<actions::Action *> *actions_to = to->defaultActions+i;
|
||||
for (int j = 0; j < actions_from->size(); j++) {
|
||||
actions::Action *action = actions_from->at(j);
|
||||
action->refCountIncrease();
|
||||
actions_to->push_back(action);
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "src/macro_expansion.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_ACCURACY_H_
|
||||
#define SRC_ACTIONS_ACCURACY_H_
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_ALLOW_H_
|
||||
#define SRC_ACTIONS_ALLOW_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_AUDIT_LOG_H_
|
||||
#define SRC_ACTIONS_AUDIT_LOG_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_BLOCK_H_
|
||||
#define SRC_ACTIONS_BLOCK_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_CAPTURE_H_
|
||||
#define SRC_ACTIONS_CAPTURE_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_CHAIN_H_
|
||||
#define SRC_ACTIONS_CHAIN_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_CTL_AUDIT_LOG_PARTS_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_CTL_REQUEST_BODY_PROCESSOR_JSON_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_CTL_REQUEST_BODY_PROCESSOR_XML_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_DENY_H_
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "src/macro_expansion.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_INIT_COL_H_
|
||||
#define SRC_ACTIONS_INIT_COL_H_
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/operators/operator.h"
|
||||
#include "modsecurity/rule_message.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_LOG_H_
|
||||
#define SRC_ACTIONS_LOG_H_
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/macro_expansion.h"
|
||||
#include "modsecurity/rule.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_LOG_DATA_H_
|
||||
#define SRC_ACTIONS_LOG_DATA_H_
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "src/macro_expansion.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_MATURITY_H_
|
||||
#define SRC_ACTIONS_MATURITY_H_
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/macro_expansion.h"
|
||||
#include "modsecurity/rule.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_MSG_H_
|
||||
#define SRC_ACTIONS_MSG_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_NO_AUDIT_LOG_H_
|
||||
#define SRC_ACTIONS_NO_AUDIT_LOG_H_
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/operators/operator.h"
|
||||
#include "modsecurity/rule_message.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_NO_LOG_H_
|
||||
#define SRC_ACTIONS_NO_LOG_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_PASS_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_PHASE_H_
|
||||
#define SRC_ACTIONS_PHASE_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_REDIRECT_H_
|
||||
#define SRC_ACTIONS_REDIRECT_H_
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "src/macro_expansion.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_REV_H_
|
||||
#define SRC_ACTIONS_REV_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_RULE_ID_H_
|
||||
#define SRC_ACTIONS_RULE_ID_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_SET_SID_H_
|
||||
#define SRC_ACTIONS_SET_SID_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_SET_UID_H_
|
||||
#define SRC_ACTIONS_SET_UID_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_SET_VAR_H_
|
||||
#define SRC_ACTIONS_SET_VAR_H_
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "src/utils/string.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_SEVERITY_H_
|
||||
#define SRC_ACTIONS_SEVERITY_H_
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_SKIP_H_
|
||||
#define SRC_ACTIONS_SKIP_H_
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_SKIP_AFTER_H_
|
||||
#define SRC_ACTIONS_SKIP_AFTER_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_STATUS_H_
|
||||
#define SRC_ACTIONS_STATUS_H_
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/macro_expansion.h"
|
||||
#include "modsecurity/rule.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TAG_H_
|
||||
#define SRC_ACTIONS_TAG_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_BASE64_DECODE_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_BASE64_DECODE_EXT_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_BASE64_ENCODE_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_CMD_LINE_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_COMPRESS_WHITESPACE_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_CSS_DECODE_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_ESCAPE_SEQ_DECODE_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_HEX_DECODE_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_HEX_ENCODE_H_
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
#include "src/utils/string.h"
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_JS_DECODE_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_LENGTH_H_
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
namespace modsecurity {
|
||||
namespace actions {
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_LOWER_CASE_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_MD5_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_NONE_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_NORMALISE_PATH_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_NORMALISE_PATH_WIN_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_PARITY_EVEN_7BIT_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_PARITY_ODD_7BIT_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_PARITY_ZERO_7BIT_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_REMOVE_COMMENTS_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_REMOVE_COMMENTS_CHAR_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_REMOVE_NULLS_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_REMOVE_WHITESPACE_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_REPLACE_COMMENTS_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_REPLACE_NULLS_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_SHA1_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_SQL_HEX_DECODE_H_
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include <string>
|
||||
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/base64_decode_ext.h"
|
||||
#include "src/actions/transformations/base64_decode.h"
|
||||
#include "src/actions/transformations/base64_encode.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_TRANSFORMATION_H_
|
||||
#define SRC_ACTIONS_TRANSFORMATIONS_TRANSFORMATION_H_
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
namespace modsecurity {
|
||||
namespace actions {
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_TRIM_H_
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
#include "src/actions/transformations/trim.h"
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
namespace modsecurity {
|
||||
namespace actions {
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
#include "src/actions/transformations/trim.h"
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
namespace modsecurity {
|
||||
namespace actions {
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
#include "src/actions/transformations/trim.h"
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_URL_DECODE_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_URL_DECODE_UNI_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_URL_ENCODE_H_
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_TRANSFORMATIONS_UTF8_TO_UNICODE_H_
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "src/macro_expansion.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_VER_H_
|
||||
#define SRC_ACTIONS_VER_H_
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
namespace modsecurity {
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
#ifndef SRC_ACTIONS_XMLNS_H_
|
||||
#define SRC_ACTIONS_XMLNS_H_
|
||||
|
@ -21,7 +21,7 @@ class Driver;
|
||||
|
||||
|
||||
#include "src/actions/accuracy.h"
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/allow.h"
|
||||
#include "src/actions/audit_log.h"
|
||||
#include "src/actions/ctl/audit_log_parts.h"
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include <utility>
|
||||
|
||||
#include "src/operators/operator.h"
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/modsecurity.h"
|
||||
#include "src/actions/transformations/none.h"
|
||||
#include "src/actions/tag.h"
|
||||
|
@ -93,8 +93,8 @@ Rules::~Rules() {
|
||||
std::vector<actions::Action *> *tmp = &defaultActions[i];
|
||||
while (tmp->empty() == false) {
|
||||
actions::Action *a = tmp->back();
|
||||
a->refCountDecreaseAndCheck();
|
||||
tmp->pop_back();
|
||||
delete a;
|
||||
}
|
||||
}
|
||||
/** Cleanup audit log */
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/deny.h"
|
||||
#include "modsecurity/intervention.h"
|
||||
#include "modsecurity/modsecurity.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
#ifndef SRC_UTILS_MD5_H_
|
||||
|
@ -39,7 +39,7 @@
|
||||
#include "modsecurity/rules.h"
|
||||
|
||||
#include "src/request_body_processor/xml.h"
|
||||
#include "src/actions/action.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/severity.h"
|
||||
#include "src/actions/xmlns.h"
|
||||
#include "src/actions/log_data.h"
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user