diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-04-14 23:48:48 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-04-14 23:48:48 +0000 |
commit | 906ac2b1ee4c9cd4ac9b91f0ba2efaa34f9449b4 (patch) | |
tree | 6a8f62e38c147f5a8ddf3ffe6810bb00122aaa83 | |
parent | b5bf8afcdb00cf4d6cc3b38b0ec2f6c184ebc2c3 (diff) | |
download | mandoc-906ac2b1ee4c9cd4ac9b91f0ba2efaa34f9449b4.tar.gz mandoc-906ac2b1ee4c9cd4ac9b91f0ba2efaa34f9449b4.tar.zst mandoc-906ac2b1ee4c9cd4ac9b91f0ba2efaa34f9449b4.zip |
for .Xr links, use short PATH_INFO style URIs
-rw-r--r-- | cgi.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.121 2016/04/14 20:40:33 schwarze Exp $ */ +/* $Id: cgi.c,v 1.122 2016/04/14 23:48:48 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@usta.de> @@ -816,12 +816,8 @@ format(const struct req *req, const char *file) memset(&conf, 0, sizeof(conf)); conf.fragment = 1; usepath = strcmp(req->q.manpath, req->p[0]); - mandoc_asprintf(&conf.man, "/%s?query=%%N&sec=%%S%s%s%s%s", - scriptname, - req->q.arch ? "&arch=" : "", - req->q.arch ? req->q.arch : "", - usepath ? "&manpath=" : "", - usepath ? req->q.manpath : ""); + mandoc_asprintf(&conf.man, "/%s%s%%N.%%S", + usepath ? req->q.manpath : "", usepath ? "/" : ""); mparse_result(mp, &man, NULL); if (man == NULL) { |