Skip to content

Commit

Permalink
#1424 Enforce MISP threat level range
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jul 9, 2020
1 parent 271130f commit 37f2752
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class MispExportSrv @Inject() (
client.createEvent(
info = `case`.title,
date = `case`.startDate,
threatLevel = 4 - `case`.severity,
threatLevel = math.min(4, math.max(1, 4 - `case`.severity)),
published = false,
analysis = 0,
distribution = 0,
Expand Down

0 comments on commit 37f2752

Please sign in to comment.