diff options
author | James Moger <james.moger@gitblit.com> | 2014-11-04 17:12:00 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-11-04 17:23:50 -0500 |
commit | b76107bb240c54ba4d4c8e1d2badd412e5c473fa (patch) | |
tree | 66219a0d5eb88194e30c74ee16b389c23505ef78 /src/main | |
parent | c3350574c9d3c6e736179e1437d83404b62468fd (diff) | |
download | gitblit-b76107bb240c54ba4d4c8e1d2badd412e5c473fa.tar.gz gitblit-b76107bb240c54ba4d4c8e1d2badd412e5c473fa.zip |
Whitelist the "target" link attribute in the XSS filter
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/gitblit/utils/JSoupXssFilter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/utils/JSoupXssFilter.java b/src/main/java/com/gitblit/utils/JSoupXssFilter.java index 7fa7b2a1..5ab7953a 100644 --- a/src/main/java/com/gitblit/utils/JSoupXssFilter.java +++ b/src/main/java/com/gitblit/utils/JSoupXssFilter.java @@ -68,7 +68,7 @@ public class JSoupXssFilter implements XssFilter { "sub", "sup", "table", "tbody", "td", "tfoot", "th", "thead", "tr", "tt", "u", "ul", "var") - .addAttributes("a", "class", "href", "style", "title") + .addAttributes("a", "class", "href", "style", "target", "title") .addAttributes("blockquote", "cite") .addAttributes("col", "span", "width") .addAttributes("colgroup", "span", "width") |