mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Refactoring: Renames Rules to RulesSet
RulesSet does not only contain rules but alse properties
This commit is contained in:
@@ -15,9 +15,8 @@
|
||||
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "modsecurity/rules_set.h"
|
||||
#include "modsecurity/modsecurity.h"
|
||||
#include "modsecurity/rules.h"
|
||||
#include "src/actions/transformations/transformation.h"
|
||||
|
||||
/**
|
||||
@@ -135,7 +134,7 @@ int main(int argc, char** argv) {
|
||||
std::string z = lastString;
|
||||
|
||||
ModSecurity *ms = new ModSecurity();
|
||||
Rules *rules = new Rules();
|
||||
RulesSet *rules = new RulesSet();
|
||||
// Here it is possible to load a real transaction from a JSON.
|
||||
// like we do on the regression tests.
|
||||
Transaction *t = new Transaction(ms, rules, NULL);
|
||||
|
Reference in New Issue
Block a user