dirplex: Strip leading `./' from X-Ash-File.
[ashd.git] / src / dirplex / dirplex.c
index baf24fa..8b604d2 100644 (file)
@@ -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);