mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Cosmetics: Fix coding style
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
|
||||
#include "common/colors.h"
|
||||
#include "src/utils.h"
|
||||
@@ -62,7 +61,8 @@ void json2bin(std::string *str) {
|
||||
modsecurity::Utils::Regex re2("\\\\u([a-z0-9A-Z]{4})");
|
||||
modsecurity::Utils::SMatch match;
|
||||
|
||||
while (modsecurity::Utils::regex_search(*str, &match, re) && match.size() > 0) {
|
||||
while (modsecurity::Utils::regex_search(*str, &match, re)
|
||||
&& match.size() > 0) {
|
||||
unsigned int p;
|
||||
std::string toBeReplaced = match.str();
|
||||
toBeReplaced.erase(0, 2);
|
||||
@@ -70,7 +70,8 @@ void json2bin(std::string *str) {
|
||||
replaceAll(str, match.str(), p);
|
||||
}
|
||||
|
||||
while (modsecurity::Utils::regex_search(*str, &match, re2) && match.size() > 0) {
|
||||
while (modsecurity::Utils::regex_search(*str, &match, re2)
|
||||
&& match.size() > 0) {
|
||||
unsigned int p;
|
||||
std::string toBeReplaced = match.str();
|
||||
toBeReplaced.erase(0, 2);
|
||||
|
Reference in New Issue
Block a user