summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/cgi.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-10-22 22:05:42 +0000
committerschwarze <schwarze@openbsd.org>2015-10-22 22:05:42 +0000
commitfec2846b7ca7a77a0e070300000259ce931ab0d0 (patch)
tree8f9ca2ce12ee7241d01ba4b9fe08b9e1c1da5628 /usr.bin/mandoc/cgi.c
parentmove man(7) validation into the dedicated validation phase, too (diff)
downloadwireguard-openbsd-fec2846b7ca7a77a0e070300000259ce931ab0d0.tar.xz
wireguard-openbsd-fec2846b7ca7a77a0e070300000259ce931ab0d0.zip
use the new function man_validate() here, too
Diffstat (limited to 'usr.bin/mandoc/cgi.c')
-rw-r--r--usr.bin/mandoc/cgi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/mandoc/cgi.c b/usr.bin/mandoc/cgi.c
index f1e65e160e1..d50d7391acb 100644
--- a/usr.bin/mandoc/cgi.c
+++ b/usr.bin/mandoc/cgi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cgi.c,v 1.50 2015/10/20 02:00:49 schwarze Exp $ */
+/* $OpenBSD: cgi.c,v 1.51 2015/10/22 22:05:42 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@usta.de>
@@ -32,6 +32,7 @@
#include "mandoc.h"
#include "roff.h"
#include "mdoc.h"
+#include "man.h"
#include "main.h"
#include "manconf.h"
#include "mansearch.h"
@@ -858,8 +859,10 @@ format(const struct req *req, const char *file)
if (man->macroset == MACROSET_MDOC) {
mdoc_validate(man);
html_mdoc(vp, man);
- } else
+ } else {
+ man_validate(man);
html_man(vp, man);
+ }
html_free(vp);
mparse_free(mp);