From 73bfb8efe8d467d007509645c556e6da44c23a69 Mon Sep 17 00:00:00 2001 From: Felix von Leitner Date: Sun, 23 Nov 2003 21:09:18 +0000 Subject: [PATCH] skip initial slashes --- test/httpd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/httpd.c b/test/httpd.c index 071ae53..766d2d2 100644 --- a/test/httpd.c +++ b/test/httpd.c @@ -144,6 +144,7 @@ e400: if (*d!=' ') goto e400; *d=0; if (c[0]!='/') goto e404; + while (c[1]=='/') ++c; if (!io_readfile(&fd,c+1)) { e404: httperror(h,"404 Not Found","No such file or directory.");