diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-25 17:52:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-25 17:52:04 +0000 |
commit | bef36583b65be07800ac2fa6493ee023487bff45 (patch) | |
tree | b8667e361e35c0a02e2ae3dc53014b73d642a9c8 /cgi.c | |
parent | cba77da50eb3d171a32e2a43937cb2edf7c79bb2 (diff) | |
download | mandoc-bef36583b65be07800ac2fa6493ee023487bff45.tar.gz |
In generated .Xr links, avoid double encoding of ampersands
and avoid empty arch= keys.
Diffstat (limited to 'cgi.c')
-rw-r--r-- | cgi.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -874,8 +874,9 @@ format(const struct req *req, const char *file) } snprintf(opts, sizeof(opts), "fragment,man=%s?" - "manpath=%s&query=%%N&sec=%%S&arch=%s", + "manpath=%s&query=%%N&sec=%%S%s%s", scriptname, req->q.manpath, + req->q.arch ? "&arch=" : "", req->q.arch ? req->q.arch : ""); mparse_result(mp, &mdoc, &man, NULL); |