mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-15 17:12:14 +03:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user