tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets InvokerServlet.java
Date Sat, 21 Sep 2002 16:22:17 GMT
remm        2002/09/21 09:22:17

  Modified:    catalina/src/share/org/apache/catalina/servlets
                        InvokerServlet.java
  Log:
  - Add classname filter.
  
  Revision  Changes    Path
  1.16      +11 -4     jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/InvokerServlet.java
  
  Index: InvokerServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/InvokerServlet.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- InvokerServlet.java	16 Feb 2002 01:07:11 -0000	1.15
  +++ InvokerServlet.java	21 Sep 2002 16:22:16 -0000	1.16
  @@ -320,6 +320,13 @@
           } else {
               pathInfo = "";
           }
  +
  +        if (servletClass.startsWith("org.apache.catalina")) {
  +            response.sendError(HttpServletResponse.SC_NOT_FOUND,
  +                               inRequestURI);
  +            return;
  +        }
  +
           if (debug >= 1)
               log("Processing servlet '" + servletClass +
                   "' with path info '" + pathInfo + "'");
  
  
  

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


Mime
View raw message