You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@locus.apache.org on 2000/09/22 20:22:45 UTC

cvs commit: apache-1.3/src/os/os2 os-inline.c

wrowe       00/09/22 11:22:44

  Modified:    src/os/os2 os-inline.c
  Log:
    Assure colon is followed by a slash to confirm an absolute path in OS2...
    ignore the test advisory in the prior commit to os.h
  
  Revision  Changes    Path
  1.7       +1 -1      apache-1.3/src/os/os2/os-inline.c
  
  Index: os-inline.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/os/os2/os-inline.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- os-inline.c	1998/07/13 11:32:48	1.6
  +++ os-inline.c	2000/09/22 18:22:43	1.7
  @@ -30,5 +30,5 @@
     /* For now, just do the same check that http_request.c and mod_alias.c
      * do. 
      */
  -  return file && (file[0] == '/' || file[1] == ':');
  +  return file && (file[0] == '/' || (file[1] == ':' && file[2] == '/'));
   }