Merge pull request #497 from ronaldtf/fix-case-thehive

Fix create case with TheHive
This commit is contained in:
Thirion Aurélien 2020-05-13 17:20:20 +02:00 committed by GitHub
commit 8f44a8d2c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -439,7 +439,7 @@ def create_hive_case():
threat_level = int(request.form['threat_level_hive']) threat_level = int(request.form['threat_level_hive'])
hive_description = request.form['hive_description'] hive_description = request.form['hive_description']
hive_case_title = request.form['hive_case_title'] hive_case_title = request.form['hive_case_title']
path = request.form['paste'] path = os.environ['AIL_HOME'] + "/PASTES/"+ request.form['paste']
#verify input #verify input
if (0 <= hive_tlp <= 3) and (1 <= threat_level <= 4): if (0 <= hive_tlp <= 3) and (1 <= threat_level <= 4):