@@ -162,7 +162,7 @@ int RulesSet::evaluate(int phase, Transaction *t) {
162162 }
163163 bool remove_rule = false ;
164164 if (ruleWithActions && m_exceptions.m_remove_rule_by_msg .empty () == false ) {
165- for (auto &z : m_exceptions.m_remove_rule_by_msg ) {
165+ for (const auto &z : m_exceptions.m_remove_rule_by_msg ) {
166166 if (ruleWithActions->containsMsg (z, t) == true ) {
167167 ms_dbg_a (t, 9 , " Skipped rule id '" \
168168 + ruleWithActions->getReference () \
@@ -177,7 +177,7 @@ int RulesSet::evaluate(int phase, Transaction *t) {
177177 }
178178
179179 if (ruleWithActions && m_exceptions.m_remove_rule_by_tag .empty () == false ) {
180- for (auto &z : m_exceptions.m_remove_rule_by_tag ) {
180+ for (const auto &z : m_exceptions.m_remove_rule_by_tag ) {
181181 if (ruleWithActions->containsTag (z, t) == true ) {
182182 ms_dbg_a (t, 9 , " Skipped rule id '" \
183183 + ruleWithActions->getReference () \
@@ -193,7 +193,7 @@ int RulesSet::evaluate(int phase, Transaction *t) {
193193
194194
195195 if (ruleWithActions) {
196- for (auto &z : t->m_ruleRemoveByTag ) {
196+ for (const auto &z : t->m_ruleRemoveByTag ) {
197197 if (ruleWithActions->containsTag (z, t) == true ) {
198198 ms_dbg_a (t, 9 , " Skipped rule id '" \
199199 + ruleWithActions->getReference () \
0 commit comments