From 3e3c69e597d7b127284c4d3fc3acbffb42f51999 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 5 Nov 2015 20:55:41 +0000 Subject: Use include files "header.html" and "footer.html" rather than a compiled-in string. This is not a security risk, we read the file manpath.conf from the same directory, anyway. No error handling is needed; even if the files are absent, that's not an error. This is more flexible without causing complication of the code or the user interface. It helps the upcoming revamp of the online manual pages on man.NetBSD.org. Based on an idea by Jean-Yves Migeon , but implemented in a much simpler way. --- cgi.h.example | 2 -- 1 file changed, 2 deletions(-) (limited to 'cgi.h.example') diff --git a/cgi.h.example b/cgi.h.example index f4c78318..c4878d34 100644 --- a/cgi.h.example +++ b/cgi.h.example @@ -4,6 +4,4 @@ #define MAN_DIR "/var/www/man" #define CSS_DIR "" #define CUSTOMIZE_TITLE "Manual pages with mandoc" -#define CUSTOMIZE_BEGIN "

\nManual pages with " \ - "mandoc\n

" #define COMPAT_OLDURI Yes -- cgit v1.2.3-56-ge451