You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jl...@locus.apache.org on 2000/04/04 21:46:45 UTC

cvs commit: jakarta-tomcat/src/native/apache/jserv jserv_status.c

jluc        00/04/04 12:46:44

  Modified:    src/native/apache/jserv jserv_status.c
  Log:
  keep synch'ed with JServ.
  Contains the BS2000 Siemens patches.
  Submitted by: jfrederic.clere@fujitsu.siemens.es
  
  Revision  Changes    Path
  1.2       +6 -2      jakarta-tomcat/src/native/apache/jserv/jserv_status.c
  
  Index: jserv_status.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/native/apache/jserv/jserv_status.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- jserv_status.c	1999/11/25 01:29:56	1.1
  +++ jserv_status.c	2000/04/04 19:46:43	1.2
  @@ -58,7 +58,7 @@
    * Based on:    mod_jserv.c by Alexei Kosut <ak...@apache.org>              *
    *              mod_example.c by Apache Group <ap...@apache.org>            *
    * Modified by: Pierpaolo Fumagalli <ia...@iname.com> June, 12 1998         *
  - * Version:     $Revision: 1.1 $                                            *
  + * Version:     $Revision: 1.2 $                                             *
    *****************************************************************************/
   #include "jserv.h"
   
  @@ -780,7 +780,11 @@
       ret = sscanf(r->uri,
     "/jserv/engine/direct/%127[a-zA-Z1-9.-]/%127[a-zA-Z1-9.-]/%127[a-zA-Z1-9.-]",
             buffer1, buffer2, buffer3);
  -    if (ret != 2)    
  +    if (ret == 3) {   
  +        if (strcmp(buffer3, JSERV_SERVLET))
  +            return FORBIDDEN;
  +    }  
  +    else if (ret != 2)    
           return FORBIDDEN;
       sta = '\0';
       job = 0;