Skip to content

Commit e6cb439

Browse files
tulinkryVladimir Kotal
authored andcommitted
escaping extra html in annotate tooltip
fixes #2671
1 parent 670ee78 commit e6cb439

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/web/Scripts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public String toHtml() {
105105
SCRIPTS.put("jquery-tablesorter", new FileScript("js/jquery-tablesorter-2.26.6.min.js", 12));
106106
SCRIPTS.put("tablesorter-parsers", new FileScript("js/tablesorter-parsers-0.0.1.js", 13));
107107
SCRIPTS.put("searchable-option-list", new FileScript("js/searchable-option-list-2.0.6.js", 14));
108-
SCRIPTS.put("utils", new FileScript("js/utils-0.0.28.js", 15));
108+
SCRIPTS.put("utils", new FileScript("js/utils-0.0.29.js", 15));
109109
SCRIPTS.put("repos", new FileScript("js/repos-0.0.1.js", 20));
110110
SCRIPTS.put("diff", new FileScript("js/diff-0.0.3.js", 20));
111111
SCRIPTS.put("jquery-caret", new FileScript("js/jquery.caret-1.5.2.min.js", 25));

opengrok-web/src/main/webapp/js/utils-0.0.28.js renamed to opengrok-web/src/main/webapp/js/utils-0.0.29.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ function domReadyMast() {
17031703
$("<dt>").text(definitions.shift().trim()).appendTo($el);
17041704
var $dd = $("<dd>");
17051705
$.each(definitions.join(":").split("<br/>"), function (i, el) {
1706-
$dd.append(el.trim());
1706+
$dd.append(escapeHtml(el.trim()));
17071707
$dd.append($("<br/>"));
17081708
});
17091709
$dd.appendTo($el);

0 commit comments

Comments
 (0)