modsecurity_audit_log_parser 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f70306e049985f31668a7574297f0433ef0ecad
|
|
4
|
+
data.tar.gz: cc699989f70a1fae7bf9fa138638b10ddb32903a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 790674063871dc06eb8f7fa23dd90b8089792fd6c07800c9dac68e3f86105846cd99dcec7967a7ead4a8527879a4ad436d43b545e76ad7fdf4cf6408033eca1e
|
|
7
|
+
data.tar.gz: f3110b9a6d9260f8a8768057c67e1785300a7596df4f2d47f6a1525d5f84ff25f562b5b189578c8381fcea6dc06ac68adda96d7ae94af31a6b697a49769e7a4d
|
|
@@ -298,7 +298,7 @@ class ModsecurityAuditLogParser
|
|
|
298
298
|
def initialize(json)
|
|
299
299
|
@tran = json[:transaction] || {}
|
|
300
300
|
@producer = @tran[:producer] || {}
|
|
301
|
-
@msg = (@tran[:messages] || []).first
|
|
301
|
+
@msg = (@tran[:messages] || []).first || {}
|
|
302
302
|
@detail = @msg[:details] || {}
|
|
303
303
|
end
|
|
304
304
|
|
|
@@ -352,7 +352,7 @@ class ModsecurityAuditLogParser
|
|
|
352
352
|
json = JSON.parse(@buf, symbolize_names: true, create_additions: false)
|
|
353
353
|
yield Log.new(json)
|
|
354
354
|
@buf.clear
|
|
355
|
-
rescue
|
|
355
|
+
rescue JSON::ParserError
|
|
356
356
|
# incomplete
|
|
357
357
|
end
|
|
358
358
|
end
|