mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Adds a set of sanity checks to validate API inputs (2 of 2)
This commit is contained in:
parent
508a2b5a4a
commit
1edd3570e1
@ -25,7 +25,7 @@ namespace modsecurity {
|
|||||||
|
|
||||||
bool RulesExceptions::load(const std::string &a, std::string *error) {
|
bool RulesExceptions::load(const std::string &a, std::string *error) {
|
||||||
bool added = false;
|
bool added = false;
|
||||||
std::vector<std::string> toRemove = utils::string::split(a, ' ');
|
std::vector<std::string> toRemove = utils::string::ssplit(a, ' ');
|
||||||
for (std::string &a : toRemove) {
|
for (std::string &a : toRemove) {
|
||||||
std::string b = modsecurity::utils::string::parserSanitizer(a);
|
std::string b = modsecurity::utils::string::parserSanitizer(a);
|
||||||
if (b.size() == 0) {
|
if (b.size() == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user