mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 22:12:25 +00:00
[FIXED SECURITY-67] Forbid CSS links in markup to be on the safe side.(cherry picked from commit 1e19eb3ece)
This commit is contained in:
1 parent
7df0060b8d
commit
d482fc50fb
2 files changed
+1
-2
No files matched your search
@@ -67,7 +67,6 @@ public class MyspacePolicy {
|
||||
tag("img", "src",ONSITE_OR_OFFSITE_URL,
|
||||
"hspace","vspace");
|
||||
tag("iframe", "src");
|
||||
tag("link", "type","rel");
|
||||
tag("ul,ol,li,dd,dl,dt,thead,tbody,tfoot");
|
||||
tag("table", "noresize");
|
||||
tag("td,th,tr");
|
||||
|
||||
@@ -43,7 +43,7 @@ public class MyspacePolicyTest extends Assert {
|
||||
assertReject("script","<script src='relative.js'></script>");
|
||||
|
||||
assertIntact("<style>H1 { display:none; }</style>");
|
||||
assertIntact("<link rel='stylesheet' type='text/css' href='http://www.microsoft.com/'>");
|
||||
assertReject("link", "<link rel='stylesheet' type='text/css' href='http://www.microsoft.com/'>");
|
||||
assertIntact("<div style='background-color:white'>inline CSS</div>");
|
||||
assertIntact("<br><hr>");
|
||||
|
||||
|
||||
Reference in new issue
Block a user