httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@locus.apache.org
Subject cvs commit: apache-1.3/src/modules/standard mod_include.c
Date Fri, 22 Sep 2000 18:26:37 GMT
wrowe       00/09/22 11:26:35

  Modified:    src/modules/standard mod_include.c
  Log:
    Correction to relative path test for Novell... disallow ':'.
  
  Revision  Changes    Path
  1.124     +5 -0      apache-1.3/src/modules/standard/mod_include.c
  
  Index: mod_include.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_include.c,v
  retrieving revision 1.123
  retrieving revision 1.124
  diff -u -r1.123 -r1.124
  --- mod_include.c	2000/06/01 23:42:28	1.123
  +++ mod_include.c	2000/09/22 18:26:32	1.124
  @@ -622,11 +622,16 @@
    * ensentially ensure that it does not match the regex:
    * (^/|(^|/)\.\.(/|$))
    * XXX: this needs os abstraction... consider c:..\foo in win32
  + * ???: No, c:../foo is not relative to ., it's potentially on another volume
    */
   static int is_only_below(const char *path)
   {
   #ifdef HAVE_DRIVE_LETTERS
       if (path[1] == ':')
  +	return 0;
  +#endif
  +#ifdef NETWARE
  +    if (strchr(path, ':'))
   	return 0;
   #endif
       if (path[0] == '/') {
  
  
  

Mime
View raw message