You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2003/05/29 18:34:38 UTC

cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler JspRuntimeContext.java

remm        2003/05/29 09:34:38

  Modified:    jasper2/src/share/org/apache/jasper/compiler
                        JspRuntimeContext.java
  Log:
  - Only do the security init if there's a security manager.
  
  Revision  Changes    Path
  1.14      +7 -5      jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspRuntimeContext.java
  
  Index: JspRuntimeContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspRuntimeContext.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- JspRuntimeContext.java	15 May 2003 18:45:40 -0000	1.13
  +++ JspRuntimeContext.java	29 May 2003 16:34:37 -0000	1.14
  @@ -191,7 +191,9 @@
   	    return;
   	}
   
  -        initSecurity();
  +        if (System.getSecurityManager() != null) {
  +            initSecurity();
  +        }
   
           // If this web application context is running from a
           // directory, start the background compilation thread
  
  
  

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