Makes clear to the user when audit log is empty due to missing JSON sup.

This commit is contained in:
Felipe Zimmerle
2017-10-10 10:25:22 -03:00
parent d3f979f1d2
commit 30364628a0
2 changed files with 6 additions and 1 deletions

View File

@@ -1701,7 +1701,7 @@ std::string Transaction::toJSON(int parts) {
return log;
#else
return std::string("");
return std::string("{\"error\":\"ModSecurity was not compiled with JSON support.\"}");
#endif
}