From: Fredrik Tolf Date: Sat, 23 Jul 2011 19:12:00 +0000 (+0200) Subject: dirplex: Don't strip all of X-Ash-File. X-Git-Tag: 0.9~5 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=2a249e824b6c9e2342c80dc0d84d8a15119e5023 dirplex: Don't strip all of X-Ash-File. --- 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);