You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/jenkinsci/plugins/badge/StatusImage.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
packageorg.jenkinsci.plugins.badge;
9
9
10
10
importjava.net.MalformedURLException;
11
+
importjava.util.Arrays;
11
12
importjava.util.logging.Level;
12
13
importjava.util.logging.Logger;
13
14
importorg.apache.commons.io.IOUtils;
@@ -105,13 +106,12 @@ class StatusImage implements HttpResponse {
105
106
if (status != null) status = StringEscapeUtils.escapeHtml(status);
106
107
if (animatedColorName != null) animatedColorName = StringEscapeUtils.escapeHtml(animatedColorName);
107
108
if (colorName != null) colorName = StringEscapeUtils.escapeHtml(colorName);
108
-
if (style != null) style = StringEscapeUtils.escapeHtml(style);
109
109
if (link != null) link = StringEscapeUtils.escapeHtml(StringEscapeUtils.escapeHtml(link)); // double-escape because concatenating into an attribute effectively removes one level of quoting
0 commit comments