aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--cgi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cgi.c b/cgi.c
index 98dbae82..abfa424c 100644
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-/* $Id: cgi.c,v 1.70 2014/07/13 12:31:23 schwarze Exp $ */
+/* $Id: cgi.c,v 1.71 2014/07/13 12:45:23 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014 Ingo Schwarze <schwarze@usta.de>
@@ -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);