Ghidra is a software reverse engineering (SRE) framework
Merge remote-tracking branch 'origin/GT-2824-dragonmacher'
ghidravore041e59aeafa2
diff --cc Ghidra/Features/Base/src/main/java/ghidra/app/script/ScriptInfo.javaindex 7226b77f4a,74ab2b55c6..e3f9e448d3--- a/Ghidra/Features/Base/src/main/java/ghidra/app/script/ScriptInfo.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/script/ScriptInfo.java@@@ -4,9 -4,9 +4,9 @@@* Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file except in compliance with the License.* You may obtain a copy of the License at-- *++ ** http://www.apache.org/licenses/LICENSE-2.0-- *++ ** Unless required by applicable law or agreed to in writing, software* distributed under the License is distributed on an "AS IS" BASIS,* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.@@@ -305,7 -308,7 +308,7 @@@ public class ScriptInfoString token = tokenizer.nextToken();if (i == tokenCount - 1) { // the key char value is the last element-- // ...all key character values must be upper case++ // ...all key character values must be upper casebuildy.append(token.toUpperCase());}else {@@@ -433,21 -436,18 +436,22 @@@* @return a string designed to be used as a tool tip*/public String getToolTipText() {- String htmlDescription = description == null ? "No Description"- : description.replaceAll("\n", HTML_NEW_LINE + HTML_SPACE);- String htmlAuthor = HTMLUtilities.bold("Author:") + HTML_SPACE + (toToolTip(author));+ String htmlDescription = (description == null) ? "No Description"+ : HTMLUtilities.escapeHTML(description).replaceAll("\n",+ HTML_NEW_LINE + HTML_SPACE);+ String htmlAuthor = HTMLUtilities.bold("Author:") + HTML_SPACE ++ HTMLUtilities.escapeHTML(toToolTip(author));String htmlCategory = HTMLUtilities.bold("Category:") + HTML_SPACE +- HTMLUtilities.escapeHTML(toToolTip(StringUtilities.convertStringArray(category, ".")));- toToolTip(StringUtils.join(category, DELIMITTER));++ HTMLUtilities.escapeHTML(toToolTip(StringUtils.join(category, DELIMITTER)));++String htmlKeyBinding =HTMLUtilities.bold("Key Binding:") + HTML_SPACE + getKeybindingToolTip();String htmlMenuPath = HTMLUtilities.bold("Menu Path:") + HTML_SPACE +- HTMLUtilities.escapeHTML(toToolTip(StringUtilities.convertStringArray(menupath, ".")));- toToolTip(StringUtils.join(menupath, DELIMITTER));++ HTMLUtilities.escapeHTML(toToolTip(StringUtils.join(menupath, DELIMITTER)));- StringBuffer buffer = new StringBuffer();- buffer.append("<h3>").append(HTML_SPACE).append(getName()).append("</h3>");+ StringBuilder buffer = new StringBuilder();+ buffer.append("<h3>").append(HTML_SPACE).append(HTMLUtilities.escapeHTML(getName())).append(+ "</h3>");buffer.append(HTML_NEW_LINE);buffer.append(HTML_SPACE).append(htmlDescription);buffer.append(HTML_NEW_LINE);