mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 10:20:35 +03:00
Actions refactoring: now there is a clear definiation on the action name
This commit is contained in:
@@ -27,16 +27,9 @@
|
||||
namespace modsecurity {
|
||||
namespace actions {
|
||||
|
||||
LogData::LogData(std::string action)
|
||||
: Action(action, RunTimeOnlyIfMatchKind),
|
||||
m_data(action) {
|
||||
m_data.erase(0, 1);
|
||||
m_data.pop_back();
|
||||
}
|
||||
|
||||
|
||||
bool LogData::evaluate(Rule *rule, Transaction *transaction, RuleMessage *rm) {
|
||||
std::string data = MacroExpansion::expand(m_data, transaction);
|
||||
std::string data = MacroExpansion::expand(m_parser_payload, transaction);
|
||||
|
||||
rm->m_data = data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user