mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Refactoring: Renames RuleBase to Rule
This commit is contained in:
@@ -66,9 +66,9 @@ using Tags = std::vector<actions::Tag *>;
|
||||
using SetVars = std::vector<actions::SetVar *>;
|
||||
using MatchActions = std::vector<actions::Action *>;
|
||||
|
||||
class RuleBase {
|
||||
class Rule {
|
||||
public:
|
||||
RuleBase(std::unique_ptr<std::string> fileName, int lineNumber)
|
||||
Rule(std::unique_ptr<std::string> fileName, int lineNumber)
|
||||
: m_fileName(std::move(fileName)),
|
||||
m_lineNumber(lineNumber),
|
||||
m_phase(modsecurity::Phases::RequestHeadersPhase) {
|
||||
@@ -103,13 +103,13 @@ class RuleBase {
|
||||
};
|
||||
|
||||
|
||||
class RuleMarker : public RuleBase {
|
||||
class RuleMarker : public Rule {
|
||||
public:
|
||||
RuleMarker(
|
||||
const std::string &name,
|
||||
std::unique_ptr<std::string> fileName,
|
||||
int lineNumber)
|
||||
: RuleBase(std::move(fileName), lineNumber),
|
||||
: Rule(std::move(fileName), lineNumber),
|
||||
m_name(std::make_shared<std::string>(name)) { }
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ class RuleMarker : public RuleBase {
|
||||
};
|
||||
|
||||
|
||||
class RuleWithActions : public RuleBase {
|
||||
class RuleWithActions : public Rule {
|
||||
public:
|
||||
RuleWithActions(
|
||||
Actions *a,
|
||||
|
Reference in New Issue
Block a user