Creates RuleUnconditional

Makes RuleScript child of RuleWithActions instead of Operator
This commit is contained in:
Felipe Zimmerle
2019-02-19 21:31:35 -03:00
parent f63bd1a45d
commit 7a48245aed
94 changed files with 1315 additions and 1167 deletions

View File

@@ -42,14 +42,14 @@ namespace modsecurity {
using actions::Action;
/** @ingroup ModSecurity_CPP_API */
class RuleScript : public RuleWithOperator {
class RuleScript : public RuleWithActions {
public:
RuleScript(const std::string &name,
std::vector<Action *> *actions,
Transformations *t,
std::unique_ptr<std::string> fileName,
int lineNumber)
: RuleWithOperator(NULL, NULL, actions, t, std::move(fileName), lineNumber),
: RuleWithActions(actions, t, std::move(fileName), lineNumber),
m_name(name) { }
bool init(std::string *err);