Made cfs-based webserver example compatible with 8.3 file systems.

This commit is contained in:
oliverschmidt 2010-09-28 20:40:52 +00:00
parent 8631ae8515
commit cd24e920b6
9 changed files with 38 additions and 33 deletions

View file

@ -30,7 +30,7 @@
*
* Author: Kajtar Zsolt <soci@c64.rulez.org>
*
* $Id: urlconv.c,v 1.2 2010/08/30 19:44:38 oliverschmidt Exp $
* $Id: urlconv.c,v 1.3 2010/09/28 20:40:52 oliverschmidt Exp $
*/
#include <string.h>
@ -140,7 +140,7 @@ urlconv_tofilename(char *dest, char *source, unsigned char maxlen)
}
} while(c);
if(*to == ISO_slash && (len + sizeof(http_index_html) - 3) < maxlen) {
strcpy(to, http_index_html); // add index.html
strcpy(to, http_index_htm); // add index.htm
} else {
++to;
*to = 0;