mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Removes initcol debug messages
This commit is contained in:
parent
a225f8b5b7
commit
dd35b47764
@ -33,31 +33,26 @@ InitCol::InitCol(std::string action)
|
|||||||
|
|
||||||
|
|
||||||
bool InitCol::init(std::string *error) {
|
bool InitCol::init(std::string *error) {
|
||||||
int posEquals = action.find("=");
|
int posEquals = action.find("=");
|
||||||
int posInit = strlen("initcol:");
|
int posInit = strlen("initcol:");
|
||||||
std::cout << "Init collection!!!!!!!!!!!!!" << std::endl;
|
|
||||||
|
|
||||||
if (action.size() < 8) {
|
if (action.size() < 8) {
|
||||||
// return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (posEquals == std::string::npos) {
|
if (posEquals == std::string::npos) {
|
||||||
// return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_collection_key = std::string(action, posInit, posEquals - posInit);
|
m_collection_key = std::string(action, posInit, posEquals - posInit);
|
||||||
m_collection_value = std::string(action, posEquals + 1);
|
m_collection_value = std::string(action, posEquals + 1);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool InitCol::evaluate(Rule *rule, Assay *assay) {
|
bool InitCol::evaluate(Rule *rule, Assay *assay) {
|
||||||
std::string collectionName;
|
std::string collectionName;
|
||||||
|
|
||||||
collectionName = MacroExpansion::expand(m_collection_value, assay);
|
collectionName = MacroExpansion::expand(m_collection_value, assay);
|
||||||
std::cout << std::endl;
|
|
||||||
std::cout << "Evaluate collection!!!!!!!!!!!!!" << std::endl;
|
|
||||||
std::cout << "Collection key: " << m_collection_key << std::endl;
|
|
||||||
std::cout << "Collection value: " << m_collection_value << std::endl;
|
|
||||||
std::cout << "Collection value (expanded): " << collectionName << std::endl;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user