* mdocml: Unbreak man.cgi's css directories when CSS_DIR isn't specified.
@ 2011-12-14 13:36 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-12-14 13:36 UTC (permalink / raw)
To: source
Log Message:
-----------
Unbreak man.cgi's css directories when CSS_DIR isn't specified.
Modified Files:
--------------
mdocml:
cgi.c
man.cgi.7
Revision Data
-------------
Index: man.cgi.7
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man.cgi.7,v
retrieving revision 1.8
retrieving revision 1.9
diff -Lman.cgi.7 -Lman.cgi.7 -u -p -r1.8 -r1.9
--- man.cgi.7
+++ 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
Index: cgi.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/cgi.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -Lcgi.c -Lcgi.c -u -p -r1.30 -r1.31
--- cgi.c
+++ 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";
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-14 13:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-14 13:36 mdocml: Unbreak man.cgi's css directories when CSS_DIR isn't specified kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).