* mandoc: Relax overzealous PATH_INFO validation.
@ 2019-01-31 23:00 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-01-31 23:00 UTC (permalink / raw)
To: source
Log Message:
-----------
Relax overzealous PATH_INFO validation.
URIs like https://man.openbsd.org/OpenBSD-2.2/cat1/cat.0
are still required to work because they result from apropos searches for
old releases (up to 5.0) which used to install preformatted manual pages.
Regression reported by jj@.
Modified Files:
--------------
mandoc:
cgi.c
Revision Data
-------------
Index: cgi.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/cgi.c,v
retrieving revision 1.164
retrieving revision 1.165
diff -Lcgi.c -Lcgi.c -u -p -r1.164 -r1.165
--- cgi.c
+++ cgi.c
@@ -1178,7 +1178,7 @@ parse_path_info(struct req *req, const c
}
/* Optional section. */
- if (strncmp(path, "man", 3) == 0) {
+ if (strncmp(path, "man", 3) == 0 || strncmp(path, "cat", 3) == 0) {
path += 3;
end = strchr(path, '/');
free(req->q.sec);
--
To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-01-31 23:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-31 23:00 mandoc: Relax overzealous PATH_INFO validation schwarze
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).