You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by be...@hyperreal.org on 1997/12/26 16:17:52 UTC

cvs commit: apachen/src/main http_request.c

ben         97/12/26 07:17:52

  Modified:    src/main http_request.c
  Log:
  Replace some absolute path tests.
  
  Revision  Changes    Path
  1.95      +2 -11     apachen/src/main/http_request.c
  
  Index: http_request.c
  ===================================================================
  RCS file: /export/home/cvs/apachen/src/main/http_request.c,v
  retrieving revision 1.94
  retrieving revision 1.95
  diff -u -r1.94 -r1.95
  --- http_request.c	1997/11/22 22:23:41	1.94
  +++ http_request.c	1997/12/26 15:17:50	1.95
  @@ -300,12 +300,7 @@
        * Fake filenames (i.e. proxy:) only match Directory sections.
        */
   
  -#if defined(__EMX__) || defined(WIN32)
  -    /* Add OS/2 drive name support */
  -    if ((test_filename[0] != '/') && (test_filename[1] != ':'))
  -#else
  -    if (test_filename[0] != '/')
  -#endif
  +    if (!os_is_path_absolute(test_filename))
       {
           void *this_conf, *entry_config;
           core_dir_config *entry_core;
  @@ -410,11 +405,7 @@
               entry_dir = entry_core->d;
   
               if (entry_core->r
  -#if defined(__EMX__) || defined(WIN32)
  -                || (entry_dir[0] != '/' && entry_dir[1] != ':')
  -#else
  -                || entry_dir[0] != '/'
  -#endif
  +		|| !os_is_path_absolute(entry_dir)
                   || entry_core->d_components > i)
                   break;