Merge branch 'security' into security-rc

Conflicts:
	core/src/main/java/hudson/Functions.java
	core/src/main/java/hudson/markup/MyspacePolicy.java
	core/src/main/java/hudson/util/RobustReflectionConverter.java
	core/src/main/resources/lib/layout/layout.jelly
	war/pom.xml
This commit is contained in:
Jesse Glick committed 2014-02-11 21:00:54 -05:00
commit abc77438d2
20 files changed
+194 -21

No files matched your search

@@ -34,9 +34,7 @@ public class MyspacePolicyTest extends Assert {
assertIntact("<table><tr><th>header</th></tr><tr><td>something</td></tr></table>");
assertIntact("<h1>title</h1><blockquote>blurb</blockquote>");
assertIntact("<iframe src='nested'></iframe>");
assertIntact("<iframe src='http://kohsuke.org'></iframe>");
assertReject("javascript","<iframe src='javascript:foo'></iframe>");
assertReject("iframe", "<iframe src='nested'></iframe>");
assertReject("script","<script>window.alert(5);</script>");
assertReject("script","<script src='http://foo/evil.js'></script>");
@@ -47,7 +45,7 @@ public class MyspacePolicyTest extends Assert {
assertIntact("<div style='background-color:white'>inline CSS</div>");
assertIntact("<br><hr>");
assertIntact("<form method='post' action='http://sun.com/'><input type='text' name='foo'><input type='password' name='pass'></form>");
assertReject("sun.com", "<form method='post' action='http://sun.com/'><input type='text' name='foo'><input type='password' name='pass'></form>");
}
private void assertIntact(String input) {