Jan Kneschke
53634de06f
protect buffer_is_empty() from NULL buffers
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1969 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-27 21:49:08 +00:00
Marcus Rückert
ea872bea37
- added testcase for bug #1322
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1968 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-27 21:48:53 +00:00
Marcus Rückert
74c303a7b1
- a more portable version for the SAPI breakage in php 5.2.4
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1967 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-27 21:10:01 +00:00
Jan Kneschke
f7df9a9ecd
MYSQL_OPT_RECONNECT is available from 5.0.13 on ( fixes #1309 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1965 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-23 12:02:20 +00:00
Jan Kneschke
1e1a8e5907
use HAVE_SYS_PRCTL_H as HAVE_PRCTL is not checked for
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1958 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-21 23:35:08 +00:00
Jan Kneschke
ef19bacae8
added sending UID and PID for SIGTERM and SIGINT to the logs
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1957 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-21 17:40:03 +00:00
Jan Kneschke
30748f202c
fixed timestamps for 32bit time_t which wraps at 2038
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1956 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-21 15:05:50 +00:00
Marcus Rückert
470d32b803
- added AM_PROG_CC_C_O as suggested by autotools
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1955 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-21 11:02:31 +00:00
Marcus Rückert
6719b15c7b
- added missing Makefile.am entries
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1954 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-21 10:56:01 +00:00
Jan Kneschke
51826fc05c
renamed ltostr() to LI_ltostr() to fix compile on HP/UX ( fixes #465 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1951 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-18 12:25:52 +00:00
Jan Kneschke
41e836b410
fixed extracting status code from NPH scripts ( fixes #1125 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1948 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-18 11:35:27 +00:00
Jan Kneschke
f67cdb67df
fixed handling of duplicate If-Modified-Since to return 304
...
- don't append the second string to the first, but free it instead
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1947 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-18 11:14:12 +00:00
Jan Kneschke
5bc539b63e
don't send a Content-Length for 1xx, 204 and 304 ( fixes #1002 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1946 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-18 10:40:20 +00:00
Jan Kneschke
c4e3150283
fixed possible overflow in unix-socket path checks on BSD ( #713 )
...
- use sizeof(sun_path) instead of UNIX_PATH_MAX which might not be
defined
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1944 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-18 09:44:08 +00:00
Jan Kneschke
f978d992df
use public API instead of patching the cond-cache ourself
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1943 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-18 09:43:35 +00:00
Jan Kneschke
3940c60e68
fixed aggressive caching of conditionals ( #41 )
...
$HTTP["url"] =~ "" { cgi.assign = ... } fails if there is a module
loaded which is called before uri_clean is set (mod_exforward,
mod_rewrite, ...)
- merged [1792], [1798], [1807], [1810], [1811] from trunk
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1942 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-18 09:27:11 +00:00
Jan Kneschke
7d2665843f
fixed counter overrun in ?auto in mod_status ( #909 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1941 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 23:35:26 +00:00
Jan Kneschke
e745fd6a12
added more debug output if FAM fails to monitor a dir (for #824 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1940 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 23:19:17 +00:00
Jan Kneschke
463e989458
removed early checks if the userfiles exist ( fixes #1188 )
...
- it is enough if the files exist when we really need them
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1938 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 22:37:47 +00:00
Jan Kneschke
dc4879473f
removed debug msg
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1937 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 22:35:19 +00:00
Jan Kneschke
8392673b7e
oops, ifd is gone
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1935 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 22:23:28 +00:00
Jan Kneschke
0177a96f5d
fixed endless loop on shrinked files with sendfile() on BSD
...
- merged the shrinked file handling from linux-sendfile
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1933 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 22:18:18 +00:00
Jan Kneschke
474d5cea20
config-options are always "unsigned short"
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1932 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 22:17:00 +00:00
Jan Kneschke
9bc4c2a025
added testcases for #1286 and #1287
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1929 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 21:50:05 +00:00
Jan Kneschke
8f8e23f636
fixed invalid chars in header values ( fixes #1286 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1928 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 21:49:13 +00:00
Jan Kneschke
5f518191bd
fixed wrong result of buffer_caseless_compare("a", "ab") ( fixes #1287 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1927 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 21:47:24 +00:00
Jan Kneschke
1920bd2739
fixed invalid "304 Not Modified" on broken timestamps
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1926 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 21:46:36 +00:00
Jan Kneschke
f0333c8c0d
fixed crash on mixed \r\n and \n sequences
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1925 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 21:04:20 +00:00
Jan Kneschke
7eb8981e44
fixed duplicate code which handles the "disable keep-alive" for dynamic
...
content (fixes #1166 )
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1924 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 15:37:45 +00:00
Jan Kneschke
3bc2da57d3
fixed number of skipped tests
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1923 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 15:36:00 +00:00
Elan Ruusamäe
4ac0e2dd1b
- update NEWS
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1922 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 06:44:03 +00:00
Elan Ruusamäe
6eccc7abd6
- set mysql reconnect to on. resolves #1240
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1919 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 06:37:17 +00:00
Jan Kneschke
e8abdbf94e
don't compress too small files ( fixes #1241 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1918 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-15 12:12:13 +00:00
Jan Kneschke
bbd42c4e03
added dir-listing.set-footer = <string> to set a footer under the
...
dirlisting (fixes #1277 )
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1911 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-15 11:16:53 +00:00
Jan Kneschke
41271d5cf6
make sure that hash-function always uses a 32bit int ( fixes #1279 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1908 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-15 09:49:15 +00:00
Marcus Rückert
777c383e58
- cleanup of the default config which includes a fix for ( #1242 )
...
- make paths more LSB alike
- added default mime type
- use example.org
- use new name of the php fastcgi binary
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1907 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-14 19:05:57 +00:00
Marcus Rückert
ceef761f69
- bump version number
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1906 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-14 18:50:12 +00:00
Marcus Rückert
baec632cb7
- finally! the fix for 948.
...
only run into the 404 handler if we are in direct connection mode.
that way we cant run into the 404 handler if a fastcgi app returned a
404.
This is a small backwards incompatible change as now the *cgi app has
to generate the content for the 404 itself instead of falling back
into the 404-handler.
There is still a problem with subrequest which go back to the same
module (fastcgi app triggers subrequest which hits the fastcgi module
again) but that would require bigger changes to the plugin api. ATM
each plugin deinitialize its data after it handled the request. So the
module isnt initialized for the connection anymore and the subrequest
directly jumps out of the handler.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1904 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-14 13:25:04 +00:00
Marcus Rückert
bafcebe06d
- check the content for the send404 case too
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1903 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-14 13:12:10 +00:00
Marcus Rückert
05d9e7dd52
- remove the code again. this reopens #948
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1902 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-13 15:44:15 +00:00
Marcus Rückert
2573648c4b
- added testcase for #948
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1901 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-13 14:34:50 +00:00
Marcus Rückert
dac6d449dd
- backported fix from trunk
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1900 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-13 11:26:06 +00:00
Marcus Rückert
5504501699
- fix the frigging 404-handler bugs:
...
- dont restore the http status code unconditionally (1270)
- mod_staticfile should set the http status properly. otherwise we run into
the 404 handling twice and it appends the default 404 page to the content.
(this passed the testsuite)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1899 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-13 11:15:22 +00:00
Marcus Rückert
029d32039c
- fixed 404 testsuite
...
- added optional fastcgi handler
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1898 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-13 11:09:11 +00:00
Marcus Rückert
984f5caf57
make the cgi executable
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1895 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-12 21:06:07 +00:00
Marcus Rückert
420abdb295
- added test cases for 404 handler
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1894 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-12 21:04:14 +00:00
Marcus Rückert
58ea3c14c5
- make the test more portable
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1892 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-12 19:24:33 +00:00
Marcus Rückert
01fab66c18
- added test for the location crash
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1887 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-12 17:52:03 +00:00
Jan Kneschke
8f9f532083
* fixed crash on 32bit archs when debug-msgs are printed in mod_scgi,
...
mod_fastcgi and mod_webdav (#1263 )
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1882 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-07-17 18:02:33 +00:00
Marcus Rückert
5a583661e3
- only generate the etag_flags once and store them in the connections
...
object.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1881 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-07-03 18:47:00 +00:00