tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject svn commit: r729206 - /tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java
Date Wed, 24 Dec 2008 03:30:40 GMT
Author: billbarker
Date: Tue Dec 23 19:30:40 2008
New Revision: 729206

URL: http://svn.apache.org/viewvc?rev=729206&view=rev
Log:
insure that classes are loaded by trusted code in a sandbox

Modified:
    tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java

Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java?rev=729206&r1=729205&r2=729206&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java Tue Dec 23 19:30:40 2008
@@ -73,6 +73,8 @@
     protected static StringManager sm =
         StringManager.getManager(Constants.Package);
 
+    protected static boolean isSecurityEnabled = 
+        org.apache.coyote.Constants.IS_SECURITY_ENABLED;
 
     // ------------------------------------------------------------ Constructor
 
@@ -1544,7 +1546,7 @@
 
         // Add date header
         String date = null;
-        if (org.apache.coyote.Constants.IS_SECURITY_ENABLED){
+        if (isSecurityEnabled){
             date = AccessController.doPrivileged(
                     new PrivilegedAction<String>() {
                         public String run(){



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message