CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2026/09/14 09:33:20

Modified files:
        usr.bin/mandoc : cgi.c 

Log message:
Fix three minor issues with gzipped manual page files.
1. In the <title> element, disregard a .gz suffix when constructiog
the name(section) string; implemented by rewriting the file name
parsing code in resp_begin_html().
2. If a query returns exactly one result, strip any .gz suffix
from the HTTP redirect destination.
3. If a search returns more than one result, strip any .gz suffixes
from the A HREF destinations.

These issues were found by Abigail G <[email protected]>,
but my patch differs from hers in so far as it does not need
additional memory allocations and only touches two functions,
pg_searchres() and resp_begin_html().

Reply via email to