Commit Graph

832 Commits (e7ff94835f0bf9842e2bff509567e5b404294f7d)

Author SHA1 Message Date
Stefan Bühler e7ff94835f fix splitting of auth-ldap filter
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2302 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-09-17 14:25:39 +00:00
Stefan Bühler 7a64f2f888 fix segfault for stat_cache(fam) calls with relative path (without '/', can be triggered by x-sendfile) (#1750)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2299 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-27 15:59:50 +00:00
Stefan Bühler 5ab6fa6fd2 Change parser generation again as the previous fix broke building with some non-gnu make utils.
According to the automake faq this is only "hiding errors" and we should be able to do better,
but i don't see how (and their examples don't work with -jX).
For a clean solution we need to compile lemon for the build host, not the target.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2298 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-27 14:53:06 +00:00
Stefan Bühler 9cb47be07f Fix small copy/paste typo in previous commit
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2297 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-27 14:53:03 +00:00
Stefan Bühler 9e6ef84e91 Do not send content-encoding for 304 (#1754), thx yzlai
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2296 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-20 16:44:51 +00:00
Stefan Bühler ed346f3907 Fixed parser generating with automake
- we want "make dist" to generate them (so you can use them for cross compiles),
   but we don't want them to be generated in the source dir.
   so if you change the .y files and have an extra build dir, you have to delete
   the generated parsers from your source.
   they get deleted with "make maintainer-clean"


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2294 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-20 10:12:23 +00:00
Stefan Bühler 22d8707ef2 Use struct copy instead of memcpy for volatile siginfo_t in server.c
Fixes "discards qualifiers" warning.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2292 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-19 22:23:34 +00:00
Stefan Bühler 19588f6ee6 Hide some ssl errors per default, enable them with debug.log-ssl-noise (#397)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2291 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-19 17:40:42 +00:00
Stefan Bühler 438626667c Fix mem leak in ssi expression parser (#1753), thx Take5k
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2289 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-19 16:42:01 +00:00
Stefan Bühler 5194c28220 Fix "comparison between signed and unsigned" warning on 64 bit in mod_fastcgi
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2288 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-19 16:41:56 +00:00
Stefan Bühler b511c42939 Replaced fprintf with log_error_write in mod-fastcgi
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2287 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-19 16:41:49 +00:00
Stefan Bühler 43a9842b28 Add 'O' and 'X' to format characters in log_error_write
upper case stands for "don't append space"; o/O is for off_t, x/X for int as hex


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2286 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-19 16:41:42 +00:00
Stefan Bühler 227d6f1b56 Fix format string bugs with sizeof(int)!=sizeof(size_t) in mod_accesslog for SYSLOG
(assuming there are no access-log-lines > 2GB)


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2285 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-19 16:41:36 +00:00
Stefan Bühler 43075bd42a Fix bug with case-insensitive filenames in mod_userdir (#1589)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2283 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-18 16:21:55 +00:00
Stefan Bühler ec61ba0559 Match headers case insensitive in response (removing of X-{Sendfile,LIGHTTPD-*}, catching Date/Server)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2281 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-12 19:47:49 +00:00
Stefan Bühler ba715e1c8f Fixed conditional patching of ldap filter (#1564)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2280 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-04 13:58:37 +00:00
Stefan Bühler 5547928112 Decode url before matching in mod_rewrite (#1720)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2278 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-02 16:24:31 +00:00
Stefan Bühler e294fffbad Print helpful error message on conditionals in global block (#1550)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2277 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-01 20:31:43 +00:00
Stefan Bühler 8d837b75d0 Fix dropping last character of evhost pattern (#161)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2275 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-01 19:29:27 +00:00
Stefan Bühler b8835ab9a8 Allow digits in [s]cgi env vars (#1712)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2274 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-01 18:35:12 +00:00
Stefan Bühler d62f894344 Fix url encoding to encode more characters (#266)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2272 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-01 17:54:04 +00:00
Stefan Bühler ad12e4c5b2 Insert many con->mode checks; they should prevent two modules to handle the same request if they shouldn't (#631)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2271 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-01 16:13:34 +00:00
Stefan Bühler f7dd7203e2 Fix buffer_reset to make an empty string
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2270 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-01 11:24:06 +00:00
Stefan Bühler 6ce1dfb0d1 mod_{fast,s}cgi: overwrite environment variables (#1722)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2265 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-31 20:45:36 +00:00
Stefan Bühler a7f5983e05 Fix EINTR handling for waitpid in mod_fastcgi
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2264 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-31 20:45:31 +00:00
Stefan Bühler d0b5d2b45f Fix round-robin balancing in mod_proxy (#1715)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2258 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-31 10:28:24 +00:00
Stefan Bühler 60b90dad70 Use filedescriptor 0 for mod_scgi spawn socket, redirect STDERR to /dev/null (#1716)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2257 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-31 10:28:22 +00:00
Stefan Bühler c1662bcf8a Handle EAGAIN and EINTR for freebsd sendfile (#1675)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2256 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-31 10:28:20 +00:00
Stefan Bühler 3f791f46d5 Fix mod_secdownload problem with unsigned time_t (#1688)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2255 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-31 10:28:18 +00:00
Stefan Bühler 0c16fddde3 Handle only HEAD, GET and POST in mod_dirlisting (same as in staticfile) (#1687)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2253 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-30 21:37:30 +00:00
Stefan Bühler 41868422f3 case insensitive match for secdownload md5 token (#1710)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2251 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-30 21:16:25 +00:00
Stefan Bühler 52861d77df Replace buffer_{append,copy}_string with the _len variant where possible (#1732, thx crypt)
Replace BUFFER_{APPEND,COPY}_STRING_CONST with _len(b, CONST_STRL_LEN(x))


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2250 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-30 19:38:32 +00:00
Stefan Bühler 25c7c7f3f8 fixed typo in mod_accesslog, localtime instead of localtime_r (#1699)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2247 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-30 16:42:14 +00:00
Stefan Bühler a70ba6c625 Fix scgi HTTP/1.* status parsing (#1638), found by met@uberstats.com
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2223 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-28 08:43:23 +00:00
Stefan Bühler 543830266c Fix bug with IPv6 in mod_evasive
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2222 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-28 08:43:19 +00:00
Stefan Bühler f08cd32877 Close connection in mod_magnet if returned status code
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2201 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-20 17:55:14 +00:00
Stefan Bühler cf789917f7 Close connection after redirect in trigger_b4_dl
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2200 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-20 12:58:18 +00:00
Elan Ruusamäe 0f515626e4 - let spawn-fcgi propagate exit code from spawned fcgi application
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2198 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-14 15:45:05 +00:00
Elan Ruusamäe 00e5a032d6 - print success message to stdout (for discarding it from initscripts)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2196 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-14 14:47:39 +00:00
Elan Ruusamäe f08ffad238 - strerror() wants errno as param not arbitary exit value from spawned child
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2194 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-14 14:40:52 +00:00
Elan Ruusamäe 5fa895e8ec - revert unwanted commit
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2193 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-14 14:33:06 +00:00
Elan Ruusamäe ef95813dea - merge spawn-fcgi changes from trunk (from @2191)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2192 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-14 14:26:20 +00:00
Xuefer b5632eada1 fixed #729: Incorrect PATH_INFO when FastCGI is serving "/", use "fix-root-scriptname" => "enable" to workaround
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2182 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-05-22 10:04:01 +00:00
Xuefer 695a227783 build mod_extforward in scons
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2176 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-05-22 06:28:08 +00:00
Xuefer 5921dc1f2d sync code between fastcgi->scgi: copy note_is_sent, fix typos
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2173 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-05-22 03:41:17 +00:00
Xuefer b557589f05 sync the "if" logic block with mod_fastcgi to make the indention same
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2172 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-05-22 03:31:22 +00:00
Xuefer 098ea27629 merged [2170] from trunk: fixed include basedir within include_shell, thanks to lunatic
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2171 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-05-15 01:24:00 +00:00
Stefan Bühler 4adb52a416 Fix dependencies of the parser files in the Makefile
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2167 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 21:01:45 +00:00
Stefan Bühler 193b933329 Fix type in previous commit
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2166 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 21:01:22 +00:00
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