mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
GT-2698 - fix html escaping to use simpler method.
This commit is contained in:
parent
6448f0da8f
commit
fa7173f9ab
60 changed files with 109 additions and 119 deletions
|
@ -138,7 +138,7 @@ public class OptionsPanel extends JPanel {
|
|||
Options currentOptions = getSelectedOptions();
|
||||
|
||||
int userChoice = OptionDialog.showOptionDialog(viewPanel, "Restore Defaults?",
|
||||
"<html>Restore <b>" + HTMLUtilities.friendlyEncodeHTML(currentOptions.getName()) +
|
||||
"<html>Restore <b>" + HTMLUtilities.escapeHTML(currentOptions.getName()) +
|
||||
"</b> to default option values <b>and erase current settings?</b>",
|
||||
"Restore Defaults");
|
||||
if (userChoice == OptionDialog.CANCEL_OPTION) {
|
||||
|
|
|
@ -127,7 +127,7 @@ public class FileDropDownSelectionDataModel implements DropDownTextFieldDataMode
|
|||
public String getDescription(File file) {
|
||||
boolean isDir = file.isDirectory();
|
||||
return "<html><table>" + "<tr><td>" + (isDir ? "Directory: " : "File: ") + "</td><td>" +
|
||||
"<b>" + HTMLUtilities.friendlyEncodeHTML(file.getName()) + "</b>" + "</td></tr>" +
|
||||
"<b>" + HTMLUtilities.escapeHTML(file.getName()) + "</b>" + "</td></tr>" +
|
||||
"<tr><td>Size:</td><td>" + (isDir ? "0" : file.length()) + " bytes" + "</td></tr>" +
|
||||
"<tr><td>Last modified:</td><td>" +
|
||||
GhidraFileChooser.format.format(new Date(file.lastModified())) + "</td></tr>" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue