summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [dist] add dist-xz, remove dist-bzip2, allow ~rc appendix in packdist.shlighttpd-1.4.36Stefan Bühler2015-07-192-15/+6
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3004 152afb58-edef-0310-8abb-c4023f1b3aa9
* [configfile] fix reading uninitialized variable (found by Willian B.)Stefan Bühler2015-07-193-12/+16
| | | | | | | | | | | | | | | | | - stream_open()-ing an empty file shouldn't return an error (and didn't on my system) - don't try to handle empty file as non-error in config_parse_file; this fixes the read of an potentially unitialized variable - stream_open()-ing an empty file doesn't try to map the file anymore and should not result in any errors; return an empty stream instead. - stream_open(): make sure the returned stream is always initialized correctly, and can always be used with stream_close(), whether opening was successful or not - stream_close(): also reset the size member From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3003 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_proxy] add unix domain socket support (fixes #2653)lighttpd-1.4.36--rc1Pascal Bach2015-07-112-14/+35
| | | | | | | | | If the server is set to a path like value (starting with "/") mod_proxy will try to establish a connection via unix domain socket. Signed-off-by: Pascal Bach <pascal.bach@siemens.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3002 152afb58-edef-0310-8abb-c4023f1b3aa9
* mime.conf: add some new mime types, remove .dat, .sha1, .md5, update .vcfStefan Bühler2015-07-073-9/+37
| | | | | | | | | - create-mime.conf.pl: also parse lines with upper case characters - rerun create-mime.conf.pl with debian mime-support 3.58 From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3001 152afb58-edef-0310-8abb-c4023f1b3aa9
* check fcgi_env_add return value (found by coverity)Stefan Bühler2015-07-051-2/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3000 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix segfault when temp file for upload couldn't be created (found by coverity)Stefan Bühler2015-07-052-3/+4
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2999 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_magnet] fix segfault when accessing not existing lighty.req_env[] entry ↵Stefan Bühler2015-07-052-1/+2
| | | | | | | | (found by coverity) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2998 152afb58-edef-0310-8abb-c4023f1b3aa9
* #ifdef all parts belonging to the connection-state debuggingStefan Bühler2015-07-051-1/+5
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2997 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix memory leak in mod_status when no counters are set (found by coverity)Stefan Bühler2015-07-052-1/+3
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2996 152afb58-edef-0310-8abb-c4023f1b3aa9
* check pointer before usage in new etag compareStefan Bühler2015-07-051-1/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2995 152afb58-edef-0310-8abb-c4023f1b3aa9
* parse If-None-Match for ETag validation (fixes #2578)Stefan Bühler2015-07-055-12/+247
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2994 152afb58-edef-0310-8abb-c4023f1b3aa9
* show extforward re-run warning only with debug.log-request-handling (fixes ↵Stefan Bühler2015-07-052-3/+6
| | | | | | | | #2561) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2993 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix hex escape in accesslog (fixes #2559)Stefan Bühler2015-07-052-1/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2992 152afb58-edef-0310-8abb-c4023f1b3aa9
* minor spelling fixesStefan Bühler2015-06-212-2/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2991 152afb58-edef-0310-8abb-c4023f1b3aa9
* add some until now missing files to dist tarballStefan Bühler2015-06-215-83/+116
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2990 152afb58-edef-0310-8abb-c4023f1b3aa9
* escape all strings for logging (fixes #2646 log file injection, reported by ↵Stefan Bühler2015-05-284-7/+70
| | | | | | | | Jaanus Kääp) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2989 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix segfaults in many plugins if they failed configurationStefan Bühler2015-05-1431-19/+49
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2988 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix error message for T_CONFIG_ARRAY config values if an entry value is not ↵Stefan Bühler2015-05-142-3/+4
| | | | | | | | a string From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2987 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_auth] use crypt_r instead of crypt if availableStefan Bühler2015-02-125-12/+36
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2986 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] fix undefined index warning in sendfile.phpStefan Bühler2015-02-081-1/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2985 152afb58-edef-0310-8abb-c4023f1b3aa9
* [crc32] fix method signature (const pointer)Stefan Bühler2015-02-082-2/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2984 152afb58-edef-0310-8abb-c4023f1b3aa9
* remove unused stuff from server.hStefan Bühler2015-02-081-8/+0
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2983 152afb58-edef-0310-8abb-c4023f1b3aa9
* [bitset] unused -> removeStefan Bühler2015-02-086-91/+4
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2982 152afb58-edef-0310-8abb-c4023f1b3aa9
* [buffer] constify some parametersStefan Bühler2015-02-082-12/+12
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2981 152afb58-edef-0310-8abb-c4023f1b3aa9
* rename buffer_append_long_hex to buffer_append_uint_hexStefan Bühler2015-02-084-24/+8
| | | | | | | | | * takes uintmax_t now * use in http_chunk_append_len From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2980 152afb58-edef-0310-8abb-c4023f1b3aa9
* Use buffer API to read and modify "used" memberStefan Bühler2015-02-0858-778/+668
| | | | | | | | | | | | | | | | | | | | | | | - a lot of code tried to handle manually adding terminating zeroes and keeping track of the correct "used" count. Replaced all "external" usages with simple wrapper functions: * buffer_string_is_empty (used <= 1), buffer_is_empty (used == 0); prefer buffer_string_is_empty * buffer_string_set_length * buffer_string_length * CONST_BUF_LEN() macro - removed "static" buffer hacks (buffers pointing to constant/stack memory instead of malloc()ed data) - buffer_append_strftime(): refactor buffer+strftime uses - li_tohex(): no need for a buffer for binary-to-hex conversion: the output data length is easy to predict - remove "-Winline" from extra warnings: the "inline" keyword just supresses the warning about unused but defined (static) functions; don't care whether it actually gets inlined or not. From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2979 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] improve valgrind and strace TRACEME, disable condition logging in ↵Stefan Bühler2015-02-083-5/+5
| | | | | | | | | | | | normal configs - condition logging is way too noisy and rarely useful - increate timeout to wait for port bind; if the process dies we fail early anyway From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2978 152afb58-edef-0310-8abb-c4023f1b3aa9
* Remove buffer_prepare_copy() and buffer_prepare_append()Stefan Bühler2015-02-0822-309/+175
| | | | | | | | | | * removed almost all usages of buffer as "memory" (without terminating zero) * refactored cgi variable name encoding From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2977 152afb58-edef-0310-8abb-c4023f1b3aa9
* Remove chunkqueue_get_{append,prepend}* APIStefan Bühler2015-02-0817-351/+465
| | | | | | | | | | | | | | | | Although those were "easy" to use, they violated the abstraction: content of the chunkqueue should only be modified via the API. Replace with chunkqueue_get_memory() and chunkqueue_use_memory() for functions that read data from network (reusing large buffers), chunkqueue_steal_with_tempfiles() to store request bodies on disk temporarily. Modules that were generating content and need a buffer maintain the buffer manually (have to be careful to free the buffer on errors, as it isn't part of the chunkqueue yet). From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2976 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix buffer, chunk and http_chunk APIStefan Bühler2015-02-0862-1396/+1044
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove unused structs and functions (buffer_array, read_buffer) * change return type from int to void for many functions, as the return value (indicating error/success) was never checked, and the function would only fail on programming errors and not on invalid input; changed functions to use force_assert instead of returning an error. * all "len" parameters now are the real size of the memory to be read. the length of strings is given always without the terminating 0. * the "buffer" struct still counts the terminating 0 in ->used, provide buffer_string_length() to get the length of a string in a buffer. unset config "strings" have used == 0, which is used in some places to distinguish unset values from "" (empty string) values. * most buffer usages should now use it as string container. * optimise some buffer copying by "moving" data to other buffers * use (u)intmax_t for generic int-to-string functions * remove unused enum values: UNUSED_CHUNK, ENCODING_UNSET * converted BUFFER_APPEND_SLASH to inline function (no macro feature needed) * refactor: create chunkqueue_steal: moving (partial) chunks into another queue * http_chunk: added separate function to terminate chunked body instead of magic handling in http_chunk_append_mem(). http_chunk_append_* now handle empty chunks, and never terminate the chunked body. From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2975 152afb58-edef-0310-8abb-c4023f1b3aa9
* print backtrace in assert logging with libunwindStefan Bühler2015-02-077-2/+102
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2974 152afb58-edef-0310-8abb-c4023f1b3aa9
* [connections] fix bug in connection state handlingStefan Bühler2015-02-072-13/+10
| | | | | | | | | | if a request was finished (con->file_finished = 1) and the state machine was triggered, but the write queue was empty, it didn't actually finish the request. From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2973 152afb58-edef-0310-8abb-c4023f1b3aa9
* [network] fix compile break in calculation of sockaddr_un size if SUN_LEN is ↵Stefan Bühler2015-02-072-6/+8
| | | | | | | | not defined (fixes #2609) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2972 152afb58-edef-0310-8abb-c4023f1b3aa9
* add NEWS entry for previous commitStefan Bühler2015-02-071-0/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2971 152afb58-edef-0310-8abb-c4023f1b3aa9
* Fixed typo found by openSUSE user (boo# 907709)Marcus Rückert2015-02-051-3/+3
| | | | git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2970 152afb58-edef-0310-8abb-c4023f1b3aa9
* [ssl] disable SSL3.0 by defaultStefan Bühler2014-10-162-1/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2969 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_dirlisting,mod_redirect,mod_rewrite] abort config parsing if ↵Stefan Bühler2014-10-164-42/+41
| | | | | | | | pcre-compile fails or isn't available From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2968 152afb58-edef-0310-8abb-c4023f1b3aa9
* [build] use fortify flags with "extra-warnings"Stefan Bühler2014-10-163-4/+26
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2967 152afb58-edef-0310-8abb-c4023f1b3aa9
* add support for (Free)BSD extended attributesMoritz Wilhelmy2014-05-224-13/+51
| | | | | | | | | | | | | enable with `./configure --with-attr` and `mimetype.use-xattr = "enable"` in the config. set attribute with: setextattr user Content-Type text/plain path/to/www/file From: Moritz Wilhelmy <mw@barfooze.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2966 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix typo in NEWS entry for #2579Stefan Bühler2014-05-131-1/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2965 152afb58-edef-0310-8abb-c4023f1b3aa9
* add more mime types and a script to generate mime.conf (fxies #2579)Stefan Bühler2014-05-133-66/+735
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2964 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix bad shift in conditional netmask ".../0" handlingStefan Bühler2014-04-142-1/+8
| | | | | | | | | | config conditionals like $HTTP["remoteip"] == "a.b.c.d/0" (or completely broken netmasks) triggered bad shifts. Matching against "/0" is not very useful though - it is always true. From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2963 152afb58-edef-0310-8abb-c4023f1b3aa9
* use keep-alive timeout while waiting for HTTP headers; use always the read ↵Stefan Bühler2014-04-022-10/+12
| | | | | | | | timeout while waiting for the HTTP body From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2962 152afb58-edef-0310-8abb-c4023f1b3aa9
* - next is 1.4.36Stefan Bühler2014-04-024-5/+8
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2961 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix SQL injection / host name validation (thx Jann Horn)lighttpd-1.4.35Stefan Bühler2014-03-124-4/+36
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2959 152afb58-edef-0310-8abb-c4023f1b3aa9
* check length of unix domain socket filenamesStefan Bühler2014-02-164-6/+40
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2958 152afb58-edef-0310-8abb-c4023f1b3aa9
* add some asserts to help static analyzersStefan Bühler2014-02-164-0/+4
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2957 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_accesslog] don't close fd -1Stefan Bühler2014-02-161-1/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2956 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_webdav] fix logic error in handling file creation errorStefan Bühler2014-02-162-1/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2955 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix unchecked return values from stream_open/stat_cache_get_entryStefan Bühler2014-02-164-14/+26
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2954 152afb58-edef-0310-8abb-c4023f1b3aa9