Tim
Tim
slackware (sorry for the delay in responding - i didn't get email from github) (maybe also arch and mint)
this can be fixed by changing the lines ``` if(uri[0] == '/'){ filename = uri + 1; ``` for ` while (filename[0] == '/') { filename = filename+1; }` and...
you're right. To do it properly you have to filter out all ../ recursively as well, otherwise something like ....//....//etc/passwd would also be a problem.
these errors can be removed with a number of changes, just after the #includes add the following two lines ``` DIR *fdopendir(int); int openat(int dirfd,const char *pathname, int flags); ```...
I haven't done a fork, as I'm not sure the original author is checking this git repository, but below is my updated version with all the fixes I have implemented....
这不会在Windows上工作,因为它使用sendfile2 linux内核函数。 this will not work on windows because it uses the sendfile2 linux kernel function.