summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-12-14 13:36:59 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-12-14 13:36:59 +0000
commitaf829015a670ed16ae8c3490a982b5acbab4202a (patch)
treed9ec625a49489db324ccf23f1a134d4b54685285
parent6414274387adaa820f390b2541fac6ff7d322fef (diff)
downloadmandoc-af829015a670ed16ae8c3490a982b5acbab4202a.tar.gz
Unbreak man.cgi's css directories when CSS_DIR isn't specified.
-rw-r--r--cgi.c2
-rw-r--r--man.cgi.72
2 files changed, 3 insertions, 1 deletions
diff --git a/cgi.c b/cgi.c
index 8e84c7df..4709159f 100644
--- a/cgi.c
+++ b/cgi.c
@@ -946,7 +946,7 @@ main(void)
progname = "";
if (NULL == (css = getenv("CSS_DIR")))
- css = "/";
+ css = "";
if (NULL == (host = getenv("HTTP_HOST")))
host = "localhost";
diff --git a/man.cgi.7 b/man.cgi.7
index 0989f0b5..a9a29dae 100644
--- a/man.cgi.7
+++ b/man.cgi.7
@@ -74,8 +74,10 @@ default.
The absolute path of the
.Xr catman 8
cache directory.
+This must not have a trailing slash.
.It Ev CSS_DIR
Prepended to CSS file links.
+This must not have a trailing slash.
.El
.Sh FILES
.Bl -tag -width Ds