diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-14 13:36:59 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-14 13:36:59 +0000 |
commit | 244a2a6ed51d4786cc32c2834a252337127878e2 (patch) | |
tree | e735e71cebbea28f869e90c9ae0f9d08e1c702f1 | |
parent | a9b4d897f5d0fcc7ff669cb8cdc6e89b6aeae658 (diff) | |
download | mandoc-244a2a6ed51d4786cc32c2834a252337127878e2.tar.gz mandoc-244a2a6ed51d4786cc32c2834a252337127878e2.tar.zst mandoc-244a2a6ed51d4786cc32c2834a252337127878e2.zip |
Unbreak man.cgi's css directories when CSS_DIR isn't specified.
-rw-r--r-- | cgi.c | 4 | ||||
-rw-r--r-- | man.cgi.7 | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.30 2011/12/12 02:00:49 schwarze Exp $ */ +/* $Id: cgi.c,v 1.31 2011/12/14 13:36:59 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -946,7 +946,7 @@ main(void) progname = ""; if (NULL == (css = getenv("CSS_DIR"))) - css = "/"; + css = ""; if (NULL == (host = getenv("HTTP_HOST"))) host = "localhost"; @@ -1,4 +1,4 @@ -.Dd $Mdocdate: December 11 2011 $ +.Dd $Mdocdate: December 14 2011 $ .Dt MAN.CGI 7 .Os .Sh NAME @@ -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 |