mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 18:30:35 +03:00
Actions refactoring: now there is a clear definiation on the action name
This commit is contained in:
@@ -25,19 +25,15 @@
|
||||
namespace modsecurity {
|
||||
namespace actions {
|
||||
|
||||
SkipAfter::SkipAfter(std::string action)
|
||||
: Action(action, RunTimeOnlyIfMatchKind),
|
||||
m_marker(action) {
|
||||
}
|
||||
|
||||
|
||||
bool SkipAfter::evaluate(Rule *rule, Transaction *transaction) {
|
||||
#ifndef NO_LOGS
|
||||
transaction->debug(5, "Setting skipAfter for: " + m_marker);
|
||||
transaction->debug(5, "Setting skipAfter for: " + m_parser_payload);
|
||||
#endif
|
||||
transaction->m_marker = m_marker;
|
||||
transaction->m_marker = m_parser_payload;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
} // namespace actions
|
||||
} // namespace modsecurity
|
||||
|
||||
Reference in New Issue
Block a user