Merge branch 'master' of git.dolda2000.com:/srv/git/r/ashd
authorFredrik Tolf <fredrik@dolda2000.com>
Mon, 5 Sep 2011 14:52:50 +0000 (16:52 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Mon, 5 Sep 2011 14:52:50 +0000 (16:52 +0200)
src/dirplex/dirplex.c

index 8b604d2..c6da4b6 100644 (file)
@@ -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);