From: Fredrik Tolf Date: Mon, 28 Mar 2011 19:24:25 +0000 (+0200) Subject: dirplex: Strip leading `./' from X-Ash-File. X-Git-Tag: 0.8~27 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=cf6e7461a8b2fd0d3c2bb1369046adcf71b71187 dirplex: Strip leading `./' from X-Ash-File. --- 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);