Skip to content

Commit

Permalink
'#2279 Corrects name extraction as some IDs are smaller than 16 chars.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdalla committed Aug 2, 2024
1 parent 72009fc commit 42bab4f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions iped-app/resources/scripts/tasks/ClassifyJumplists.js
Original file line number Diff line number Diff line change
Expand Up @@ -838,10 +838,13 @@ function process(item){
id = id.substring(path.lastIndexOf("/")+1).toUpperCase();
item.getMetadata().add("Application ID", id);

var pos = IdsList.indexOf(id) + 19;
if(pos>19){
item.getMetadata().add("Application Name", IdsList.substring(pos,IdsList.indexOf('"',pos)));
}
var pos = IdsList.indexOf(id);
if(pos>-1){
pos = IdsList.indexOf('"|"', pos)+3;
if(pos>19){
item.getMetadata().add("Application Name", IdsList.substring(pos,IdsList.indexOf('"',pos)));
}
}
}
}
}

0 comments on commit 42bab4f

Please sign in to comment.