httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@hyperreal.org
Subject cvs commit: apache-1.3/src/os/win32 util_win32.c
Date Thu, 18 Feb 1999 11:07:15 GMT
pcs         99/02/18 03:07:15

  Modified:    src/os/win32 util_win32.c
  Log:
  The code to reject bad filenames was also rejecting filenames containing
  characters in the range 0x80 to 0xff. This was preventing access to files
  containing non-ASCII characters, such as accented characters.
  
  PR: 3890
  Submitted by:	Paul Sutton
  
  Revision  Changes    Path
  1.33      +1 -1      apache-1.3/src/os/win32/util_win32.c
  
  Index: util_win32.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/os/win32/util_win32.c,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- util_win32.c	1999/01/30 19:19:25	1.32
  +++ util_win32.c	1999/02/18 11:07:14	1.33
  @@ -642,7 +642,7 @@
   
   	/* Test 2 */
   	for (idx = 0; idx < seglength; idx++) {
  -	    if (segstart[idx] < 32 ||
  +	    if ((segstart[idx] > 0 && segstart[idx] < 32) ||
   		strchr(invalid_characters, segstart[idx])) {
   		return 0;
   	    }
  
  
  

Mime
View raw message