Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the issue where the HTML code was not being reflected #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion burp/src/main/java/burp/BurpExtender.java
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ private JPanel buildDisplayPane()
panelTitle.setHorizontalAlignment(SwingConstants.LEFT);
JPanel basePanel = new JPanel();
basePanel.setLayout(new BorderLayout());
displayArea.putClientProperty("html.disable", null);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that client properties are removed when the UI changes. If Burp allows to dynamically change the L&F it will show the HTML after changing it.

//displayArea.setText("\n" + "\n" + "\n" + "\n" + "\n" + "\n");
callbacks.customizeUiComponent(displayArea);
//displayArea.setEditable(false);
Expand Down Expand Up @@ -1124,6 +1125,7 @@ private JLabel addPanelLabelToGridBagLayout(String titleText, Container gridBagC

private JLabel addPanelDescriptionToGridBagLayout(String descriptionText, Container gridBagContainer, int yPosition) {
final JLabel panelDescription = new JLabel(descriptionText);
panelDescription.putClientProperty("html.disable", null);
panelDescription.setHorizontalAlignment(SwingConstants.LEFT);
callbacks.customizeUiComponent(panelDescription);
GridBagConstraints gridBagConstraints = new GridBagConstraints();
Expand Down Expand Up @@ -1429,4 +1431,4 @@ public void remove(FilterBypass fb, int offset, int length)
}

}
}
}