From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 68e164a0 for ; Sat, 18 Mar 2017 11:19:41 -0500 (EST) Date: Sat, 18 Mar 2017 11:19:41 -0500 (EST) Message-Id: <15470910519175392942.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Bugfix: use SCRIPT_NAME for .Xr hyperlinks. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Bugfix: use SCRIPT_NAME for .Xr hyperlinks. Patch from . Modified Files: -------------- mdocml: cgi.c Revision Data ------------- Index: cgi.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/cgi.c,v retrieving revision 1.151 retrieving revision 1.152 diff -Lcgi.c -Lcgi.c -u -p -r1.151 -r1.152 --- cgi.c +++ cgi.c @@ -839,7 +839,8 @@ resp_format(const struct req *req, const conf.fragment = 1; conf.style = mandoc_strdup(CSS_DIR "/mandoc.css"); usepath = strcmp(req->q.manpath, req->p[0]); - mandoc_asprintf(&conf.man, "/%s%s%%N.%%S", + mandoc_asprintf(&conf.man, "/%s%s%s%s%%N.%%S", + scriptname, *scriptname == '\0' ? "" : "/", usepath ? req->q.manpath : "", usepath ? "/" : ""); mparse_result(mp, &man, NULL); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv