mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Makes clear to the user when audit log is empty due to missing JSON sup.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user