summaryrefslogtreecommitdiffstats
path: root/cgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c2
1 files changed, 2 insertions, 0 deletions
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);