Adds support to m_highlightJSON in RuleMessage class

This variable helds a JSON with information regarding all matches.
Only filled when IncludeFullHighlightLog property is set.
This commit is contained in:
Felipe Zimmerle
2018-07-20 13:58:51 -03:00
parent 1b27c6ccae
commit e84fb9d00f
6 changed files with 13 additions and 3 deletions

View File

@@ -237,6 +237,10 @@ end:
modsecurity::RuleMessage::computeHighlight(ruleMessage,
ruleMessage->m_buf);
highlightToText(h);
std::cout << "Highlight JSON:" << std::endl;
std::cout << ruleMessage->m_highlightJSON << std::endl;
std::cout << "Request:" << std::endl;
std::cout << ruleMessage->m_buf;
std::cout << std::endl;
}