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
124d8cd555
Fix make dist (remove dummydir)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2293 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-20 10:12:20 +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
24804542d2
[tests] fix skip in mod-rewrite
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2284 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-19 00:11:52 +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
3cb2c1c39c
[tests] Added env var TESTS to select only a subset of tests
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2279 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-02 16:24:33 +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
0c8ebbeb60
[tests] Fix fastcgi php finding
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2249 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-30 17:40:09 +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
2bd973108d
[tests] remove env TODO test: don't use undefined env vars
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2244 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-29 21:22:36 +00:00
Stefan Bühler
3bb07cad07
[tests] Fixed tests needing php running (if not running on port 1026, search php in env[PHP] or /usr/bin/php-cgi)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2243 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-29 21:22:28 +00:00
Stefan Bühler
cbd40dc44b
[tests] Remove pidfile from test system
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2242 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-29 21:22:13 +00:00
Stefan Bühler
0b257bcefa
[tests] Fixed test system, use foreground daemons and waitpid
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2241 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-29 21:21:34 +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