mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 14:32:22 +00:00
[SECURITY-3188]
This commit is contained in:
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>");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user