From 0fd57d81e86c83567fbf785ddd8dddf7b0bf01e4 Mon Sep 17 00:00:00 2001 From: billbarker Date: Wed, 24 Dec 2008 03:30:40 +0000 Subject: [PATCH] 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 --- java/org/apache/coyote/http11/Http11Processor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(){ -- 2.11.0