mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-04 05:22:57 +03:00
Moves static methods from class String to the namespace string
This commit is contained in:
@@ -20,16 +20,13 @@
|
||||
#include "src/utils/string.h"
|
||||
|
||||
|
||||
using modsecurity::utils::String;
|
||||
|
||||
|
||||
namespace modsecurity {
|
||||
|
||||
|
||||
bool RulesExceptions::load(const std::string &a, std::string *error) {
|
||||
std::vector<std::string> toRemove = String::split(a, ' ');
|
||||
std::vector<std::string> toRemove = utils::string::split(a, ' ');
|
||||
for (std::string &a : toRemove) {
|
||||
std::string b = String::removeBracketsIfNeeded(a);
|
||||
std::string b = utils::string::removeBracketsIfNeeded(a);
|
||||
|
||||
size_t dash = b.find('-');
|
||||
if (dash != std::string::npos) {
|
||||
|
Reference in New Issue
Block a user