mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Fix some issues reported by the static analysis
This commit is contained in:
@@ -53,6 +53,8 @@ bool InitCol::init(std::string *error) {
|
||||
bool InitCol::evaluate(Rule *rule, Transaction *transaction) {
|
||||
std::string collectionName;
|
||||
collectionName = MacroExpansion::expand(m_collection_value, transaction);
|
||||
std::cout << "Collection is not implemented yet, here is the ";
|
||||
std::cout << "collection name: " << collectionName << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@@ -114,7 +114,7 @@ void Rbl::futherInfo_httpbl(struct sockaddr_in *sin, std::string ipStr,
|
||||
debug(trans, 4, "RBL lookup of " + ipStr + " succeeded. %s: " \
|
||||
+ std::to_string(days) + " " \
|
||||
"days since last activity, threat score " \
|
||||
+ std::to_string(score));
|
||||
+ std::to_string(score) + ". Case: " + ptype);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -125,7 +125,6 @@ void chomp(std::string *str) {
|
||||
|
||||
|
||||
std::string tolower(std::string str) {
|
||||
std::locale loc;
|
||||
std::string value;
|
||||
value.resize(str.length());
|
||||
|
||||
|
Reference in New Issue
Block a user