]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Further re-unification of code duplicated across mod_cgi/mod_cgid into
authorJoe Orton <jorton@apache.org>
Tue, 8 Sep 2020 14:08:22 +0000 (14:08 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 8 Sep 2020 14:08:22 +0000 (14:08 +0000)
commiteabfcda175c138ffaa461ead97f361a67cbe6c6f
tree2b26655d1809a7a1ca59c0064687f82caa7ddef3
parent4c2a29ab7addd8d99d7491fcce75045aac51bcd0
Further re-unification of code duplicated across mod_cgi/mod_cgid into
cgi_common.h.  Functional changes:

- brings the PR 61980 fix to mod_cgid as well, and
- some mod_cgid-specific APLOGNOs are dropped in favour of the
  code used in the equivalent error path in mod_cgi

... otherwise no user-visible changes (intended).

* modules/generators/cgi_common.h (log_scripterror, log_script_err): Move
  here from mod_cgi.
  (cgi_handle_exec): Move here, renamed from mod_cgi's handle_exec.
  (cgi_optfns_retrieve): New function, split out from mod_cgi's cgi_post_config.

* modules/generators/mod_cgid.c: Adjust accordingly, update to pass
  logno separately.
  (register_hooks): Register cgi_optfns_retrieve.

* modules/generators/mod_cgi.c: Adjust accordingly.
  (register_hooks): Register cgi_optfns_retrieve.

Github: closes #141

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1881559 13f79535-47bb-0310-9956-ffa450edef68
.travis.yml
modules/generators/cgi_common.h
modules/generators/mod_cgi.c
modules/generators/mod_cgid.c