mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 21:12:15 +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
@@ -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