mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Using shared var for variables names
This commit is contained in:
@@ -105,7 +105,7 @@ bool Pm::evaluate(Transaction *transaction, Rule *rule,
|
||||
}
|
||||
|
||||
if (capture && transaction && rc) {
|
||||
transaction->m_collections.m_tx_collection->storeOrUpdateFirst("TX:0",
|
||||
transaction->m_collections.m_tx_collection->storeOrUpdateFirst("0",
|
||||
std::string(match));
|
||||
#ifndef NO_LOGS
|
||||
transaction->debug(7, "Added pm match TX.0: " + \
|
||||
|
@@ -59,7 +59,7 @@ bool Rx::evaluate(Transaction *transaction, Rule *rule,
|
||||
matches.reverse();
|
||||
for (const SMatch& a : matches) {
|
||||
transaction->m_collections.m_tx_collection->storeOrUpdateFirst(
|
||||
"TX:" + std::to_string(i), a.match);
|
||||
std::to_string(i), a.match);
|
||||
#ifndef NO_LOGS
|
||||
transaction->debug(7, "Added regex subexpression TX." +
|
||||
std::to_string(i) + ": " + a.match);
|
||||
|
Reference in New Issue
Block a user