Skip to content

Commit

Permalink
Fix highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrill-bannwart committed May 16, 2024
1 parent d1fb39c commit 91122b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/BurpExtension/JwtScanCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ private List<Marker> markersForPayload(AuditInsertionPoint auditInsertionPoint,
List<Range> highlights = auditInsertionPoint.issueHighlights(payload);
List<Marker> markers = new ArrayList<>(highlights.size());
for (Range range : highlights) {
markers.add(Marker.marker(range));
int startIndex = range.startIndexInclusive();
int endIndex = range.startIndexInclusive() + payload.length();
markers.add(Marker.marker(startIndex, endIndex));
}

return markers;
Expand Down

0 comments on commit 91122b8

Please sign in to comment.