mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-05 08:05:56 +00:00
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:
1 parent
318fb582a8
commit
6793b72fec
2 files changed
+19
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user