httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@ai.mit.edu (Robert S. Thau)
Subject Re: YMB (yet more bugs)
Date Tue, 04 Apr 1995 14:58:09 GMT
This time for sure... [quoth Bullwinkle...]

*** http_mime.c	Sun Apr  2 18:14:22 1995
--- ../http_mime.c	Tue Apr  4 14:52:27 1995
***************
*** 179,186 ****
--- 179,195 ----
      int i,l,l2;
      struct mime_ext *p;
      char fn[MAX_STRING_LEN];
+     char *endp;
  
      strcpy(fn,file);
+ 
+     /* Don't consider trailing slashes when trying to determine type... */
+ 
+     endp = fn + strlen(fn);
+     
+     while (endp > fn && endp[-1] == '/')
+ 	*--endp = '\0';
+     
      if((i=rind(fn,'.')) >= 0) {
          ++i;
          l=strlen(fn);

Mime
View raw message