Adds a set of sanity checks to validate API inputs (2 of 2)

This commit is contained in:
Felipe Zimmerle 2017-06-21 19:11:25 -07:00
parent 508a2b5a4a
commit 1edd3570e1

View File

@ -25,7 +25,7 @@ namespace modsecurity {
bool RulesExceptions::load(const std::string &a, std::string *error) {
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) {
std::string b = modsecurity::utils::string::parserSanitizer(a);
if (b.size() == 0) {