Commit Graph

89 Commits (bbbbfb3de0db3a09cd3fb91f5287fc004c337a37)

Author SHA1 Message Date
Glenn Strauss bbbbfb3de0 untangle overly complex control flow logic
7 years ago
Glenn Strauss f1681ca29b [mod_cgi] always set QUERY_STRING (fixes #1339)
7 years ago
Glenn Strauss 47f3dbebe4 use li_[iu]tostrn() instead of li_[iu]tostr()
7 years ago
Glenn Strauss f5453290b7 validate return values from strtol, strtoul (fixes #2564)
7 years ago
Glenn Strauss 8abd06a7ff consistent inclusion of config.h at top of files (fixes #2073)
7 years ago
Glenn Strauss dde7bea99a [mod_cgi] kill CGI if fail to write request body
7 years ago
Glenn Strauss f2cbd0a3aa [mod_cgi] simplify mod_cgi_handle_subrequest()
7 years ago
Glenn Strauss e5e66f791f [mod_cgi] consolidate CGI cleanup code
7 years ago
Glenn Strauss 94647804cf [mod_cgi] send 500 if CGI ends and there is no response (fixes #2542)
7 years ago
Glenn Strauss f23a24a263 [mod_cgi] issue trace and exit if execve() fails (closes #2302)
7 years ago
Glenn Strauss 665cc39b95 [mod_cgi] edge case chdir "/" when docroot "/" (fixes #2460)
7 years ago
Glenn Strauss 3fd80ff8ec [mod_cgi] use MAP_PRIVATE to mmap temporary file instead of MAP_SHARED (fixes #2715)
7 years ago
Stefan Bühler c512345fa2 [config] check config option scope; warn if server option is given in conditional
7 years ago
Gaurav 5c5f67a5c7 add force_assert for many allocations and function results
8 years ago
Stefan Bühler 912533cd68 [mmap] fix mmap alignment
8 years ago
Stefan Bühler 6d6dbadb14 [mod_cgi] rewrite mmap and generic (post body) send error handling
8 years ago
Stefan Bühler 26226271de maintain cq->bytes_in in chunk API; keep bytes_out/bytes_in synced
8 years ago
Stefan Bühler 33cebeb0f7 fix segfaults in many plugins if they failed configuration
8 years ago
Stefan Bühler ad3e93ea96 Use buffer API to read and modify "used" member
8 years ago
Stefan Bühler 4365bdbebe Remove buffer_prepare_copy() and buffer_prepare_append()
8 years ago
Stefan Bühler 6afad87d2e fix buffer, chunk and http_chunk API
8 years ago
Stefan Bühler 07dd0bd0a5 add force_assert() to enforce assertions as simple assert()s are disabled by -DNDEBUG (fixes #2546)
9 years ago
Stefan Bühler 6f208cfde1 fix/silence bugs reported by ccc-analyzer (clang)
9 years ago
Stefan Bühler 559b198f86 [auth] put REMOTE_USER into cgi environment, making it accessible to lua via lighty.req_env (fixes #2495)
10 years ago
Stefan Bühler 05858f6cf2 [ssl] Fix $HTTP["scheme"] conditional, could be "http" for ssl connections if the ssl $SERVER["socket"] conditional was nested (fixes #2501)
10 years ago
Cyril Brulebois 9c43331382 Use NULL instead of 0 where pointers are expected.
11 years ago
Cyril Brulebois 0c6a564543 Fix non-ANSI function declarations.
11 years ago
Stefan Bühler 5677f17442 [mod_*cgi,mod_accesslog] Fix splitting :port with ipv6 (fixes #2333, thx simoncpu)
11 years ago
Stefan Bühler 761bedd7fe [libev/cgi] fix waitpid ECHILD errors in cgi with libev (fixes #2324)
11 years ago
Stefan Bühler adc97e5ba3 [*cgi] Use physical base dir (alias, userdir) as DOCUMENT_ROOT in cgi environments (fixes #2216)
12 years ago
Stefan Bühler 33e30b486a mod_cgi: make read buffer as big as incoming data block
12 years ago
Stefan Bühler 7e5b0fe9ab Rename fdevent_event_add to _set to reflect what the function does. Fix some handlers.
13 years ago
Stefan Bühler 38f2d1ddd7 cleanup fdevent code, removed linux-rtsig handler, replaced some fprintf calls
13 years ago
Stefan Bühler 73e0bb2715 mod_cgi: fix race condition leaving response not forwarded to client (fixes #2217)
13 years ago
Stefan Bühler 85b1f6afd3 Fix fd leaks in mod_cgi (fds not closed on pipe/fork failures, found by Rodrigo, fixes #2158, #2159)
13 years ago
Stefan Bühler e21a83934e Fix mod_cgi cgi.execute-x-only option in global block
13 years ago
Stefan Bühler 22e8b456a9 Fix header inclusion order, always include "config.h" before any system header
14 years ago
Stefan Bühler 4df22f2a32 Fix issues found with clang analyzer
14 years ago
Stefan Bühler 3c11705903 Add "cgi.execute-x-only" to mod_cgi, requires +x for cgi scripts (fixes #2013)
14 years ago
Stefan Bühler fbdb305f8a Add server.breakagelog, a "special" stderr (fixes #1863)
14 years ago
Stefan Bühler a78acf99a1 Fix mod_cgi environment keys mangling (fixes #1969)
14 years ago
Stefan Bühler ecfdc60945 Fix SERVER_NAME port stripping (fixes #1968)
14 years ago
Stefan Bühler 2e823e8d14 Use server.tag for SERVER_SOFTWARE if configured (fixes #357)
14 years ago
Stefan Bühler 638ee6cad9 Add revision number to package version for svn/git checkouts
14 years ago
Stefan Bühler 1527160c69 Add support for pipe logging for server.errorlog (fixes #296)
14 years ago
Stefan Bühler ff5c18bee8 Check for regular file in mod_cgi, so we don't try to start directories
14 years ago
Stefan Bühler def70d86e9 Remove the optional port info from SERVER_NAME (thx Mr_Bond)
14 years ago
Stefan Bühler 63f785a2f8 Added some extra warning options in cmake and fix the resulting warnings (unused/static functions)
14 years ago
Stefan Bühler 90bfe20bf5 Fix mod_cgi segfault when bound to unix domain socket (#653)
15 years ago
Stefan Bühler b8835ab9a8 Allow digits in [s]cgi env vars (#1712)
15 years ago