Commit Graph

1109 Commits

Author SHA1 Message Date
Stefan Bühler e93cb224c1 Fix more warnings (unused var, pointer types in md5.c)
- Use const void* in instead of unsigned char* in MD5_Update
   (same as in the openssl api, to avoid signed/unsigned char* warnings)
 - Add const to some pointers in md5.c


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2165 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 21:01:00 +00:00
Stefan Bühler 7b309ef770 Fix warning of deprecated ldap api usage (define LDAP_DEPRECATED)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2164 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 21:00:01 +00:00
Stefan Bühler 93e7167f84 Implement a clean way to open /dev/null and use it to close stdin/out/err in the needed places (#624)
- as stderr gets redirected to /dev/null before exec in childs, we cannot
   write to the log afterwards, so disabled that log messages too.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2163 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 20:59:39 +00:00
Stefan Bühler f9999e286e Disable logging to access.log if filename is an empty string
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2162 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 20:59:18 +00:00
Stefan Bühler cbdd9e485b Do not rely on PATH_MAX (POSIX does not require it) (#580)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2161 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 11:03:41 +00:00
Stefan Bühler 5a9992b106 Fixed many warnings (compare (un)signed, unused vars, and initialize with zero)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2160 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 11:03:26 +00:00
Stefan Bühler 7adc4d7e8c Remove generated mod_ssi_expreparser.h from source (should be generated by lemon)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2159 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 11:03:13 +00:00
Stefan Bühler c431c5166f And now really delete lighttpd.spec.in itself
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2158 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 20:01:51 +00:00
Stefan Bühler 70c0280c92 Remove lighttpd.spec* from source, fixing all problems with it ;-)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2157 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 19:54:35 +00:00
Stefan Bühler 074223041a Fix typo in test description
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2156 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 19:45:05 +00:00
Stefan Bühler 73189c64e7 Fix mod_magnet to set con->mode = p->id if it generates content, so returning 4xx/5xx doesn't append an error page
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2155 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 19:27:12 +00:00
Stefan Bühler ac92ea3616 Allow all http status codes by default; disable body only for 204,205 and 304; generate error pages for 4xx and 5xx (#1639)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2154 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 19:10:42 +00:00
Stefan Bühler 8dd78e06c7 Handle EINTR in mod_cgi during write() (#1640)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2153 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 15:05:50 +00:00
Stefan Bühler 4bf89c62b6 Overwrite Content-Type header in mod_dirlisting instead of inserting (#1614), patch by Henrik Holst
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2152 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 13:20:55 +00:00
Stefan Bühler fcce4c9cbb Fix comment style (use /* */ instead of //)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2151 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 13:10:41 +00:00
Stefan Bühler fe8b7e575e Fix mod_fastcgi prefix matching: match the prefix always against url, not the absolute filepath (regardless of check-local)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2150 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 13:08:13 +00:00
Stefan Bühler 79a6ae3fd4 Fix accesslog port (should be port from the connection, not the "server.port") (#1618)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2149 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 13:04:21 +00:00
Stefan Bühler 0841482318 Enable escaping of % and $ in redirect/rewrite; only two cases changed their behaviour: "%%" => "%", "$$" => "$"
Old behaviour was "%%" => "%%" and "$$" => "$$"


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2148 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 13:00:15 +00:00
Stefan Bühler bb1d9af71c Fix conditional interpretation of core options
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2147 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 12:38:32 +00:00
Stefan Bühler ff4cabbb1d Don't send empty Server headers (#1620)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2145 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-10 10:54:27 +00:00
Marcus Rückert 91d83ea983 - fix 2 small typos in the ssl fix
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2144 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-07 10:54:26 +00:00
Stefan Bühler bcb3310a62 Use data_response_init in mod_fastcgi x-sendfile handling for response.headers, fix a small "memleak" (#1628)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2143 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-05 20:00:21 +00:00
Stefan Bühler 3ab6e28ce8 Fix previous commit (wrong line in the NEWS file)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2142 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-30 15:01:50 +00:00
Stefan Bühler 7df37be5c5 Added CVE for #285 (CVE-2008-1531)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2141 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-30 14:49:45 +00:00
Stefan Bühler 6363a0908f Fixed SSL_shutdown error handling problems which became visible after [2136].
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2139 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-28 16:33:15 +00:00
Stefan Bühler 2cf3927ef5 Fix segfault for appending matched parts if there was no regex matching (just give empty strings) (#1601)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2138 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-26 14:23:05 +00:00
Stefan Bühler 80be71bd43 Fix mod_magnet: enable "request.method" and "request.protocol" in lighty.env (#1308)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2137 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-26 13:51:33 +00:00
Stefan Bühler 2b46e3dacc Fix #285 again: read error after SSL_shutdown (thx marton.illes@balabit.com) and clear the error queue before some other calls
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2136 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-26 11:51:06 +00:00
Stefan Bühler 763f88406e Update documentation for #1587
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2130 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-13 15:34:46 +00:00
Stefan Bühler 2772e62d8d Fix mod_extforward to compile with old gcc version (#1591)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2129 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-13 15:34:28 +00:00
Stefan Bühler adec5443ee Fix mod_compress to compile with old gcc version (#1592)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2128 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-13 15:34:10 +00:00
Stefan Bühler 6528732c79 - next is 1.4.20
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2127 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-13 15:33:06 +00:00
Marcus Rückert 41414d6348 - added CVE for the mod_userdir bug
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2125 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-10 21:28:30 +00:00
Jan Kneschke 7bb555991c fixed handling of waitpid() == EINTR mod_ssi on solaris
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2124 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-10 19:20:27 +00:00
Jan Kneschke 1181dad6e0 make configure checks for --with-pcre, --with-zlib and --with-bzip2 failing if the headers aren't found
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2123 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-10 19:15:27 +00:00
Jan Kneschke abe8e3613e added support to run dtruss as TRACEME
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2122 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-10 19:14:05 +00:00
Marcus Rückert 8cc03378a1 - added cve numbers for DOS and mod_cgi bug
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2121 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-10 15:54:38 +00:00
Stefan Bühler ec5c74ad12 workaround #1587: require userdir.path to be set to enable mod_userdir (empty string allowed)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2120 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-10 11:45:29 +00:00
Elan Ruusamäe 0fd628958c - verbose FCGI header too small error
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2119 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-07 10:48:34 +00:00
Stefan Bühler 0663d67c1a Fix symlink.t check to run with builddir != srcdir
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2115 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-02 12:59:54 +00:00
Stefan Bühler 1431deba81 Add option to configure verbosity of check in commandline: "VERBOSE=1 make check"
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2114 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-02 12:59:36 +00:00
Stefan Bühler 85b8153dfc Fix previous merge
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2113 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-02 12:59:18 +00:00
Xuefer 9ffe08a583 merged part of [1528] from trunk: added the new options and added alternative names for user-agent, remote-ip and query-string
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2112 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-02 11:46:44 +00:00
Stefan Bühler 52840fa1ed fix sending "408 - Timeout" instead of "410 - Gone" for timedout urls in mod_secdownload (#1440)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2111 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-03-01 19:10:47 +00:00
Stefan Bühler 6754ad5116 fix min-procs handling in mod_scgi.c, just set to max-procs (patch from #623)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2109 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-28 22:19:03 +00:00
Stefan Bühler c065f36bc1 r2136@chromobil: stefan | 2008-02-28 22:18:14 +0100
Fix sending source of cgi script instead of 500 error if fork fails


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2107 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-28 21:19:24 +00:00
Stefan Bühler 0adc0af5fd Fix #1575: spawn-fcgi: only try to connect to unix socket (not tcp) before spawning
- we do not need to check for a tcp socket this way as bind will fail if the socket is in use;
   this does not apply to unix sockets as they are not bound to a filename but to the file, which
   we delete before spawning.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2106 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-28 12:19:34 +00:00
Jan Kneschke c5a1cac202 allow content for Status 300
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2105 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-27 23:42:22 +00:00
Jan Kneschke 5b20e0d864 fixed missing initialization
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2104 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-27 23:42:01 +00:00
Jan Kneschke 46396ac56c don't suppress the content of a status 300
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2103 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-27 23:41:35 +00:00