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-catalina/catalina/src/share/org/apache/catalina/servlets InvokerServlet.java
Date Mon, 07 Oct 2002 20:35:19 GMT
remm        2002/10/07 13:35:19

  Modified:    catalina/src/share/org/apache/catalina/servlets
                        InvokerServlet.java
  Log:
  - Port patch.
  
  Revision  Changes    Path
  1.3       +12 -4     jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/InvokerServlet.java
  
  Index: InvokerServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/InvokerServlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- InvokerServlet.java	23 Sep 2002 08:19:18 -0000	1.2
  +++ InvokerServlet.java	7 Oct 2002 20:35:19 -0000	1.3
  @@ -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