tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfarc...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/connector OutputBuffer.java
Date Wed, 22 Jun 2005 16:24:39 GMT
jfarcand    2005/06/22 09:24:39

  Modified:    catalina/src/share/org/apache/catalina/connector
                        OutputBuffer.java
  Log:
  Fix typo. When the security manager is used, we always needs to execute under a doPrivileged
block.
  
  Revision  Changes    Path
  1.7       +1 -1      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/connector/OutputBuffer.java
  
  Index: OutputBuffer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/connector/OutputBuffer.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- OutputBuffer.java	19 May 2005 14:14:41 -0000	1.6
  +++ OutputBuffer.java	22 Jun 2005 16:24:39 -0000	1.7
  @@ -559,7 +559,7 @@
           conv = (C2BConverter) encoders.get(enc);
           if (conv == null) {
               
  -            if (SecurityUtil.isPackageProtectionEnabled()){
  +            if (System.getSecurityManager() != null){
                   try{
                       conv = (C2BConverter)AccessController.doPrivileged(
                               new PrivilegedExceptionAction(){
  
  
  

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


Mime
View raw message