mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-19 02:40:35 +03:00
Actions refactoring: now there is a clear definiation on the action name
This commit is contained in:
@@ -27,20 +27,12 @@
|
||||
namespace modsecurity {
|
||||
namespace actions {
|
||||
|
||||
Ver::Ver(std::string action)
|
||||
: Action(action, ConfigurationKind),
|
||||
m_ver(action) {
|
||||
if (m_ver.at(0) == '\'') {
|
||||
m_ver.erase(0, 1);
|
||||
m_ver.pop_back();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool Ver::evaluate(Rule *rule, Transaction *transaction) {
|
||||
rule->m_ver = m_ver;
|
||||
rule->m_ver = m_parser_payload;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
} // namespace actions
|
||||
} // namespace modsecurity
|
||||
|
||||
Reference in New Issue
Block a user