Skip to content

Commit 3036462

Browse files
author
Felipe Zimmerle
committed
Makes clear to the user when audit log is empty due to missing JSON sup.
1 parent d3f979f commit 3036462

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGES

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
v3.0.????? - ?
33
---------------------------
44

5+
- Makes clear to the user whenever the audit log is empty due to missing
6+
JSON support.
7+
[Issue #1585 - @zimmerle]
8+
- Makes auditlog more verbose on debug logs
9+
[Issue: #1559 - @zimmerle]
510
- Enable support for AuditLogFormat
611
[Issue: #1583, #1493 and #1453 - @victorhora]
712
- Adds macro expansion for @rx operator

src/transaction.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ std::string Transaction::toJSON(int parts) {
17011701

17021702
return log;
17031703
#else
1704-
return std::string("");
1704+
return std::string("{\"error\":\"ModSecurity was not compiled with JSON support.\"}");
17051705
#endif
17061706
}
17071707

0 commit comments

Comments
 (0)