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 Mon, 07 Oct 2002 20:20:31 GMT
remm        2002/10/07 13:20:31

  Modified:    catalina/src/share/org/apache/catalina/servlets
                        InvokerServlet.java
  Log:
  - Proposed fix for 13365. Please review.
  
  Revision  Changes    Path
  1.17      +12 -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.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- InvokerServlet.java	21 Sep 2002 16:22:16 -0000	1.16
  +++ InvokerServlet.java	7 Oct 2002 20:20:31 -0000	1.17
  @@ -343,6 +343,14 @@
               if (wrapper == null)
                   wrapper = (Wrapper) context.findChild(name);
               if (wrapper != null) {
  +                String actualServletClass = wrapper.getServletClass();
  +                if ((actualServletClass != null)
  +                    && (actualServletClass.startsWith
  +                        ("org.apache.catalina"))) {
  +                    response.sendError(HttpServletResponse.SC_NOT_FOUND,
  +                                       inRequestURI);
  +                    return;
  +                }
                   if (debug >= 1)
                       log("Using wrapper for servlet '" +
                           wrapper.getName() + "' with mapping '" +
  
  
  

--
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