Adds references to the collection variables

This commit is contained in:
Felipe Zimmerle
2017-02-02 18:32:00 -03:00
committed by Felipe Zimmerle
parent e95efa05cc
commit d851699529
9 changed files with 39 additions and 15 deletions

View File

@@ -90,8 +90,9 @@ bool Pm::evaluate(Transaction *transaction, Rule *rule,
bool capture = rule && rule->getActionsByName("capture").size() > 0;
if (rc > 0 && transaction) {
logOffset(ruleMessage, rc, input.size());
transaction->m_matched.push_back(std::string(match));
std::string match_(match);
logOffset(ruleMessage, rc - match_.size() + 1, match_.size());
transaction->m_matched.push_back(match_);
}
if (capture && transaction && rc) {