From: billbarker Date: Wed, 24 Dec 2008 03:30:40 +0000 (+0000) Subject: insure that classes are loaded by trusted code in a sandbox X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0fd57d81e86c83567fbf785ddd8dddf7b0bf01e4;p=tomcat7.0 insure that classes are loaded by trusted code in a sandbox git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@729206 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/http11/Http11Processor.java b/java/org/apache/coyote/http11/Http11Processor.java index 812eef7cd..7a0a3dd84 100644 --- a/java/org/apache/coyote/http11/Http11Processor.java +++ b/java/org/apache/coyote/http11/Http11Processor.java @@ -73,6 +73,8 @@ public class Http11Processor implements ActionHook { protected static StringManager sm = StringManager.getManager(Constants.Package); + protected static boolean isSecurityEnabled = + org.apache.coyote.Constants.IS_SECURITY_ENABLED; // ------------------------------------------------------------ Constructor @@ -1544,7 +1546,7 @@ public class Http11Processor implements ActionHook { // Add date header String date = null; - if (org.apache.coyote.Constants.IS_SECURITY_ENABLED){ + if (isSecurityEnabled){ date = AccessController.doPrivileged( new PrivilegedAction() { public String run(){