mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Makes matchedvars inline
This commit is contained in:
parent
b58018e778
commit
a5a40a71a9
@ -91,9 +91,9 @@ class Rule {
|
|||||||
std::string value, std::shared_ptr<RuleMessage> rm);
|
std::string value, std::shared_ptr<RuleMessage> rm);
|
||||||
void executeActionsIndependentOfChainedRuleResult(Transaction *trasn,
|
void executeActionsIndependentOfChainedRuleResult(Transaction *trasn,
|
||||||
bool *b, std::shared_ptr<RuleMessage> ruleMessage);
|
bool *b, std::shared_ptr<RuleMessage> ruleMessage);
|
||||||
void updateMatchedVars(Transaction *trasn, std::string key,
|
inline void updateMatchedVars(Transaction *trasn, const std::string &key,
|
||||||
std::string value);
|
const std::string &value);
|
||||||
void cleanMatchedVars(Transaction *trasn);
|
inline void cleanMatchedVars(Transaction *trasn);
|
||||||
|
|
||||||
std::vector<actions::Action *> getActionsByName(const std::string& name,
|
std::vector<actions::Action *> getActionsByName(const std::string& name,
|
||||||
Transaction *t);
|
Transaction *t);
|
||||||
|
@ -241,8 +241,8 @@ void Rule::cleanUpActions() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Rule::updateMatchedVars(Transaction *trans, std::string key,
|
inline void Rule::updateMatchedVars(Transaction *trans, const std::string &key,
|
||||||
std::string value) {
|
const std::string &value) {
|
||||||
#ifndef NO_LOGS
|
#ifndef NO_LOGS
|
||||||
trans->debug(9, "Matched vars updated.");
|
trans->debug(9, "Matched vars updated.");
|
||||||
#endif
|
#endif
|
||||||
@ -254,7 +254,7 @@ void Rule::updateMatchedVars(Transaction *trans, std::string key,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Rule::cleanMatchedVars(Transaction *trans) {
|
inline void Rule::cleanMatchedVars(Transaction *trans) {
|
||||||
#ifndef NO_LOGS
|
#ifndef NO_LOGS
|
||||||
trans->debug(9, "Matched vars cleaned.");
|
trans->debug(9, "Matched vars cleaned.");
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user