Adds support to the STATUS variable

This commit is contained in:
Felipe Zimmerle
2016-06-20 20:33:50 -03:00
parent 56d084a7f4
commit a36b2da86a
5 changed files with 113 additions and 0 deletions

View File

@@ -1136,6 +1136,8 @@ int Transaction::processLogging(int returned_code) {
}
this->m_httpCodeReturned = returned_code;
this->m_collections.store("STATUS", std::to_string(returned_code));
this->m_rules->evaluate(ModSecurity::LoggingPhase, this);
/* If relevant, save this transaction information at the audit_logs */