Skip to content

Commit

Permalink
fix for malicious links in html tags and crashtag without securityman…
Browse files Browse the repository at this point in the history
…ager
  • Loading branch information
apkreader committed Jul 1, 2024
1 parent 8b4d9dc commit c8d4e6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/me/grax/jbytemod/ui/ClassTree.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void refreshTree(JarArchive jar) {
preloadMap = new HashMap<>();
if (jar.getClasses() != null)
for (ClassNode c : jar.getClasses().values()) {
String name = c.name;
String name = c.name.replace("<html>", "HTMLCrashtag");
String[] path = array_unique(name.split("/"));
name = String.join("/", path);

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/me/grax/jbytemod/ui/lists/MyCodeList.java
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,8 @@ public boolean loadFields(ClassNode cn) {
this.currentClass = cn;
this.currentMethod = null;
LazyListModel<InstrEntry> lm = new LazyListModel<InstrEntry>();
editor.setText(cn.name + " Fields");
String crashFixClassName = cn.name.replace("<html>", "HTMLCrashtag");
editor.setText(crashFixClassName + " Fields");
ArrayList<InstrEntry> entries = new ArrayList<>();
for (FieldNode fn : cn.fields) {
InstrEntry entry = new FieldEntry(cn, fn);
Expand Down

0 comments on commit c8d4e6e

Please sign in to comment.