tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/native/apache/jserv jserv_status.c
Date Tue, 04 Apr 2000 19:46:45 GMT
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 <akosut@apache.org>              *
    *              mod_example.c by Apache Group <apache@apache.org>            *
    * Modified by: Pierpaolo Fumagalli <ianosh@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;
  
  
  

Mime
View raw message