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:12:00 -0500 |
commit | b5010f9f54ae2d32cf1c86e7b7129aa2d6633053 (patch) | |
tree | f927ef9b3308d9ae944fad9bdab6d7109b9ff583 /src | |
parent | ee116b1bb896d723894882f721e2264f9b9c0b1c (diff) | |
download | gitblit-b5010f9f54ae2d32cf1c86e7b7129aa2d6633053.tar.gz gitblit-b5010f9f54ae2d32cf1c86e7b7129aa2d6633053.zip |
Whitelist the "target" link attribute in the XSS filter
Diffstat (limited to 'src')
-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 b5ac59f6..aec22411 100644 --- a/src/main/java/com/gitblit/utils/JSoupXssFilter.java +++ b/src/main/java/com/gitblit/utils/JSoupXssFilter.java @@ -73,7 +73,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") |