From 75e61b708df013a632d2fa2788e1df196e5b08f6 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 13 Jul 2014 12:45:23 +0000 Subject: make source vs. formatted guessing a bit more robust --- cgi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgi.c b/cgi.c index a95ab464..383d0553 100644 --- a/cgi.c +++ b/cgi.c @@ -768,6 +768,8 @@ format(const struct req *req, const char *file) static void resp_show(const struct req *req, const char *file) { + if ('.' == file[0] || '/' == file[1]) + file += 2; if ('c' == *file) catman(req, file); -- cgit