X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fdirplex%2Fdirplex.c;h=c6da4b69c03003755379bd3f895caba52eb5d191;hp=8b604d2dc945c67717e0e7afb553930b22cd9f35;hb=2a249e824b6c9e2342c80dc0d84d8a15119e5023;hpb=056f947352274dd1f6ec51b03c423c12e3828623 diff --git a/src/dirplex/dirplex.c b/src/dirplex/dirplex.c index 8b604d2..c6da4b6 100644 --- a/src/dirplex/dirplex.c +++ b/src/dirplex/dirplex.c @@ -61,7 +61,7 @@ static void handle(struct hthead *req, int fd, char *path, struct pattern *pat) struct config *ccf; char *twd; - if(!strncmp(path, "./", 2)) + if(!strncmp(path, "./", 2) && path[2]) path += 2; if(pat->fchild) { headappheader(req, "X-Ash-File", path);