skip initial slashes
This commit is contained in:
parent
15a54e002b
commit
3fe23979fd
@ -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.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user