added XML escape method.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3146 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-04-17 01:15:20 +00:00
1 parent 318fb582a8
commit 6793b72fec
2 files changed
+19

No files matched your search

+4
View File
@@ -347,6 +347,10 @@ public class Functions {
return Util.escape(s);
}
public static String xmlEscape(String s) {
return Util.xmlEscape(s);
}
public static void adminCheck(StaplerRequest req, StaplerResponse rsp, Object required) throws IOException, ServletException {
if(required!=null && !Hudson.adminCheck(req,rsp)) {
// check failed