diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-10 21:51:07 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-10 21:51:07 +0000 |
commit | 0d785509b734a9aa337d97c5e1c617f9cd5fbbcf (patch) | |
tree | ee89b598910cd97519007aeeab789b84983ff3e2 /att.c | |
parent | b2f62a9dfad85b17622ada01e540d1dfe412b637 (diff) | |
download | mandoc-0d785509b734a9aa337d97c5e1c617f9cd5fbbcf.tar.gz |
Big upgrade and polish for cgi.c.
- Deprecate kvals (key/value pairs for QUERY_STRING values). Since there's
only one place that uses this, kval_parse (now http_parse()) dumps directly
into struct query, which is more high-level.
- Put query values directly into struct req.
- The biggest difference is dynamic support for multiple "manroots". A
"manroot" is a path with an "etc/catman.conf" file. When the cgi starts,
it (prefix) recurses through its CACHE_DIR searching for "etc" directories.
When one's found, it sees if a catman.conf file exists. This is marked
as a manroot and appended to a list. The name of a manroot is the path
without slashes (e.g., OpenBSD/4.9 -> "OpenBSD 4.9").
Right now "manroot" isn't enabled. The first manroot is chosen as the
real one. I'll add the interface to it in the next checkins, but it'll be
quite simple.
Diffstat (limited to 'att.c')
0 files changed, 0 insertions, 0 deletions