mirror of https://github.com/CIRCL/AIL-framework
fix path-event id map
parent
cd4c099685
commit
bf72c27711
|
@ -459,7 +459,7 @@ def create_misp_event():
|
|||
if event != False:
|
||||
return redirect(event)
|
||||
else:
|
||||
return 'error1'
|
||||
return 'error, event creation'
|
||||
return 'error0'
|
||||
|
||||
@PasteSubmit.route("/PasteSubmit/create_hive_case", methods=['POST'])
|
||||
|
|
|
@ -126,7 +126,7 @@ def showpaste(content_range):
|
|||
else:
|
||||
hive = True
|
||||
|
||||
misp_event = r_serv_metadata.get('misp_events:path')
|
||||
misp_event = r_serv_metadata.get('misp_events:' + requested_path)
|
||||
if misp_event is None:
|
||||
misp_eventid = False
|
||||
misp_url = ''
|
||||
|
@ -134,7 +134,7 @@ def showpaste(content_range):
|
|||
misp_eventid = True
|
||||
misp_url = misp_event_url + misp_event
|
||||
|
||||
hive_case = r_serv_metadata.get('hive_cases:path')
|
||||
hive_case = r_serv_metadata.get('hive_cases:' + requested_path)
|
||||
if hive_case is None:
|
||||
hive_caseid = False
|
||||
hive_url = ''
|
||||
|
|
Loading…
Reference in New Issue