mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Changes debuglogs schema to avoid unecessary str allocation
This commit is contained in:
@@ -60,10 +60,8 @@ bool Rx::evaluate(Transaction *transaction, Rule *rule,
|
||||
for (const SMatch& a : matches) {
|
||||
transaction->m_collections.m_tx_collection->storeOrUpdateFirst(
|
||||
std::to_string(i), a.match);
|
||||
#ifndef NO_LOGS
|
||||
transaction->debug(7, "Added regex subexpression TX." +
|
||||
ms_dbg_a(transaction, 7, "Added regex subexpression TX." +
|
||||
std::to_string(i) + ": " + a.match);
|
||||
#endif
|
||||
transaction->m_matched.push_back(a.match);
|
||||
i++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user