[SECURITY-3188]

This commit is contained in:
Yaroslav Afenkin authored and Jenkins CERT CI committed 2023-07-13 07:24:44 +00:00
1 parent 69202c5f3b
commit 1b9f1ccdbb
2 files changed
+54 -2

No files matched your search

@@ -83,7 +83,7 @@ public abstract class AbstractMarkupText {
* @since 1.349
*/
public void addHyperlink(int startPos, int endPos, String url) {
addMarkup(startPos, endPos, "<a href='" + url + "'>", "</a>");
addMarkup(startPos, endPos, "<a href='" + Functions.htmlAttributeEscape(url) + "'>", "</a>");
}
/**
@@ -93,7 +93,7 @@ public abstract class AbstractMarkupText {
* @since 1.395
*/
public void addHyperlinkLowKey(int startPos, int endPos, String url) {
addMarkup(startPos, endPos, "<a class='lowkey' href='" + url + "'>", "</a>");
addMarkup(startPos, endPos, "<a class='lowkey' href='" + Functions.htmlAttributeEscape(url) + "'>", "</a>");
}
/**