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
2017-09-07 22:04:00 -03:00
parent 2419a36593
commit 98eca23a1b
6 changed files with 13 additions and 3 deletions

View File

@@ -235,6 +235,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;
}