fix path-event id map

pull/208/head
Terrtia 2018-06-19 13:43:26 +02:00
parent cd4c099685
commit bf72c27711
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
2 changed files with 3 additions and 3 deletions

View File

@ -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'])

View File

@ -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 = ''