=================================================================== RCS file: /cvs/mandoc/cgi.c,v retrieving revision 1.164 retrieving revision 1.165 diff -u -p -r1.164 -r1.165 --- mandoc/cgi.c 2018/12/30 00:49:54 1.164 +++ mandoc/cgi.c 2019/01/31 23:00:23 1.165 @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.164 2018/12/30 00:49:54 schwarze Exp $ */ +/* $Id: cgi.c,v 1.165 2019/01/31 23:00:23 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2014, 2015, 2016, 2017, 2018 Ingo Schwarze @@ -1178,7 +1178,7 @@ parse_path_info(struct req *req, const char *path) } /* 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);