mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Changed the tsk_event_decription other descriptions to have a place holder instead of artifactID
This commit is contained in:
parent
6d3d1bdbd5
commit
267121aa40
@ -627,10 +627,22 @@ def normalize_db_entry(line, files_table, vs_parts_table, vs_info_table, fs_info
|
||||
fields_list[4] = files_table[object_id]
|
||||
if legacy_artifact_id != 'NULL' and legacy_artifact_id in artifact_table.keys():
|
||||
fields_list[6] = artifact_table[legacy_artifact_id]
|
||||
|
||||
fields_list[1] = cleanupEventDescription(fields_list[1])
|
||||
fields_list[2] = cleanupEventDescription(fields_list[2])
|
||||
fields_list[3] = cleanupEventDescription(fields_list[3])
|
||||
|
||||
newLine = ('INSERT INTO "tsk_event_descriptions" VALUES(' + ','.join(fields_list[1:]) + ');') # remove report_id
|
||||
return newLine
|
||||
else:
|
||||
return line
|
||||
|
||||
def cleanupEventDescription(description):
|
||||
test = re.search("\D+:\d+", description)
|
||||
if test is not None:
|
||||
return re.sub(":\d+", ":<artifact_id>", description)
|
||||
else:
|
||||
return description
|
||||
|
||||
def getAssociatedArtifactType(cur, artifact_id, isMultiUser):
|
||||
if isMultiUser:
|
||||
|
Loading…
x
Reference in New Issue
Block a user