-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Implement id ranges for ctl:ruleRemoveTargetById #2430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement id ranges for ctl:ruleRemoveTargetById #2430
Conversation
IMPORTANT: SecDefaultAction specified on a child configuration will overwrite the ones specified on the parent; Previously it was concatenating.
Generals organization on the Action class
Previously, ModSecurity inconsistently used RuleId, int and double for rule id variables in different places.
In C++11, string data is always null-terminated[1], and can be freely modified[2]. [1] https://stackoverflow.com/questions/6077189/will-stdstring-always-be-null-terminated-in-c11 [2] https://stackoverflow.com/questions/38875623/is-it-permitted-to-modify-the-internal-stdstring-buffer-returned-by-operator
Using the references on key and collection as shared pointers
Making the code more readable.
On `Use std::shared_ptr for variable resolution` @wgh changes VariableValue to be a shared_ptr. As shared pointer, the copy on AnchoredVariable is no longer necessary. The copy was removed along with the copy constructor.
Last compute at the last minute, if needed.
i/o operations are expensive. Making sure that they were not being executed/printed more than necessary.
4e6f485 to
b4a8fa9
Compare
33752b3 to
abf59f4
Compare
|
On branch v3/dev/pull_2430 doing some QA testing. |
1632d3b to
7aceb99
Compare
|
What release was this actually included in? I don't see the defect listed in 3.0.4 and 3.1.0 hasn't been released yet. |
I'm not sure it was merged into any main branch. As you can see above, the original author pushed this into a development branch. Since then there are many changes in the code, so I'm not sure we can pick up this in this form. Probably someone needs to rewrite this feature... |
No description provided.