X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fdirplex%2Fdirplex.c;h=8b604d2dc945c67717e0e7afb553930b22cd9f35;hb=cf6e7461a8b2fd0d3c2bb1369046adcf71b71187;hp=baf24fac7a845c9267560e118d21f906c9fd26f3;hpb=4ab547c31eed8bbe9538587850a1b90d4138d609;p=ashd.git diff --git a/src/dirplex/dirplex.c b/src/dirplex/dirplex.c index baf24fa..8b604d2 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; if(pat->fchild) { headappheader(req, "X-Ash-File", path); stdforkserve(pat->fchild, req, fd, NULL, NULL);