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