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-03-08 13:26:53 -03:00
parent 0ae459593e
commit 5537951993
6 changed files with 13 additions and 3 deletions

View File

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