History log of /httpd/modules/lua/lua_request.c
Revision Date Author Comments Expand
35c3b17d372ce88d90b685e304178c656cff6578 1657263 04-Feb-2015 covener

followup to r1657261 whitespace only -- reindent body of while loop. (no change under svn diff -x-w)

35006c658c32693022c67b70a3fcf53399e36bd7 1657261 04-Feb-2015 covener

*) SECURITY: CVE-2015-0228 (cve.mitre.org) mod_lua: A maliciously crafted websockets PING after a script calls r:wsupgrade() can cause a child process crash. [Edward Lu <Chaosed0 gmail.com>] Discovered by Guido Vranken <guidovranken gmail.com> Submitted by: Edward Lu Committed by: covener

4330364fc1db390a69cc84d4d0f62138bcd5bf80 1657256 04-Feb-2015 covener

Fix bit-shifting of websockets frame fields that would yield wrong opcodes when the FIN bit was set. Results in PING not being recognized by mod_lua. PR57524 Submitted By: Edward Lu Committed By: covener

d29f007bd24b024fc03046e47cc70fb12f279771 1641661 25-Nov-2014 humbedooh

mod_lua: Initial attempt at passing on the configuration tree to Lua.

c271e7c502bc43bb558060f3b8e207db814843a4 1612552 22-Jul-2014 rjung

Switch from lua_objlen() to Lua 5.2 preferred lua_rawlen(). Define lua_rawlen() in terms of lua_objlen() when building against older Lua.

b2c17021012bc4f7cd8e374c6bd72b926737320f 1612068 20-Jul-2014 jailletc36

Add missing APLOGNO. Refactor some lines to keep APLOGNO on the same line as ap_log_error, when applicable. Split lines longer than 80. Improve alignment.

b8a7a4ee92e5c37f7ca83989d5827e53e24d32cb 1611741 18-Jul-2014 humbedooh

mod_lua: Don't quote values in cookies; Make IE happy again [#56734]

95e04bdfdb8fbb70158afd18bbf0acc340615d65 1610491 14-Jul-2014 jorton

SECURITY (CVE-2014-0226): Fix a race condition in scoreboard handling, which could lead to a heap buffer overflow. Thanks to Marek Kroemeke working with HP's Zero Day Initiative for reporting this. * include/scoreboard.h: Add ap_copy_scoreboard_worker. * server/scoreboard.c (ap_copy_scoreboard_worker): New function. * modules/generators/mod_status.c (status_handler): Use it. * modules/lua/lua_request.c (lua_ap_scoreboard_worker): Likewise. Reviewed by: trawick, jorton, covener, jim Submitted by: jorton, covener

6e3f8130aea194b6d36d85645f58e05d231ed225 1588989 21-Apr-2014 trawick

back to c89

0cee07878a30fb184a7273a7a26616386810a76e 1588807 20-Apr-2014 humbedooh

mod_lua: stop complaining

624f57d904c7c5f2c44fcdbf6e4f72631d4532b8 1588761 20-Apr-2014 humbedooh

mod_lua: Use binary strstr for finding endpoints of a multipart object. (How did this EVER work?! *sigh*)

d14183c7679493efa822e8d25855b041830feefe 1582858 28-Mar-2014 humbedooh

mod_lua: Redesign the table construction/access mechanism, so we pass on a struct with the request_rec, the table pointer and the table name instead of just the table pointer. This allows us to use the request_rec for logging/editing purposes, as well as inform the user which exact table in the request_rec was modified.

a02497299bcca7fd88eeeab810e1b5deaff31d96 1582253 27-Mar-2014 humbedooh

mod_lua: escape key/value pairs when setting cookies to prevent header splitting with tainted cookies.

e15fd139edfaaca26fb6b8f3deefaa4f774823fb 1572748 27-Feb-2014 humbedooh

this wasn't supposed to be a pointer, thanks Yann!

48de5c9f9e700528ecb07e06cd80640b6478734d 1572704 27-Feb-2014 humbedooh

Remove bad line that snuck into the commit

ffab66306c894d36112fa851c5cb59f74179e7c2 1572703 27-Feb-2014 humbedooh

mod_lua: Only read up to whatever the user defines as max size when using r:parsebody() - if content length is greater, return an error.

8861e3760584fe7f451b3519163502a63c406eb3 1570208 20-Feb-2014 humbedooh

mod_lua: Add r:wspeek for checking if data is available to be read.

dcb323276b9a77b3e2d3aad02f97ef1475189fae 1570156 20-Feb-2014 humbedooh

mod_lua: Slight null-check fix on setcookie.

cb08c398dd5b412e0829b5ff57562a189a2bd1f9 1567434 11-Feb-2014 humbedooh

use err_headers_out for setting cookies instead of headers_out, so they persist on non-2xx/3xx statuses (Thanks to Joe Schaefer for this)

16f23f109da3b82fdca8695789bec9f06e2e3383 1567430 11-Feb-2014 humbedooh

mod_lua: Upgrade r:setcookie to accept a table of arguments, and add domain, path and HttpOnly to the list of options available for setting. PR 56128

baa68b1df0c1b8e3f94f340451307f0ac5a82a66 1567221 11-Feb-2014 covener

mod_lua: Fix r:setcookie() to add, rather than replace, the Set-Cookie header. PR56105 Submitted By: Kevin J Walters <kjw ms com>, Edward Lu <Chaosed0 gmail com> Committed By: covener

3ac51ddfbfe671531f655ced6889989aeee9b1e9 1564727 05-Feb-2014 humbedooh

Fix support for uploading files by using pushlstring instead of pushstring when pushing binary data.

071fe6334d20b1a00489055b967d923b93f0a82c 1555063 03-Jan-2014 humbedooh

mod_lua: Detect "All" or "None" before putting together a potentially blank (or static) string.

1e5944e9077197533aaac377b24b4a6a223e69ae 1551968 18-Dec-2013 covener

get arpa/inet.h from apr_want.h for htons where applicable

420de1671680228f219130e683678d2d584ff567 1544820 23-Nov-2013 rjung

mod_lua: Fix compiler warning by using correct APR_SIZE_T_FMT and APR_OFF_T_FMT format macro in debug logging.

07d4803d994ceb56601e59e9519bff98e9c70e2c 1542493 16-Nov-2013 trawick

apr_file_write_full() simplification (like r1542413 and r1542416) hopefully I sidestepped the surprising conflation of OK/APR_SUCCESS in this code

001a44c352f89c9ec332ffd3e0a6927dcd19432c 1526906 27-Sep-2013 humbedooh

mod_lua: Use a (new) global pool/mutex setup for IVM rather than a per-process pool.

2608ae345b3a1e827791a873c05e3a8584e204e0 1524321 18-Sep-2013 humbedooh

mod_lua: ap_ntoh64 endianess test

1dc118753f1f42d325e600e573ac03a0c8a0fb63 1523432 15-Sep-2013 humbedooh

mod_lua: Figure out a way to read from SSL connections with WebSockets. Brigades ain't my strong side, so if someone could adjust it a bit, that'd be swell. It _works_, but I'm sure it could be improved upon. Also make r:wsclose() work properly with SSL.

e57395146bbd26fdc92d42baee80da0059c45401 1523211 14-Sep-2013 fuankg

Use APR type; rename var.

202470a355e4f306a1e23448897ad1af144bf339 1523207 14-Sep-2013 fuankg

Fixed ap_ntoh64 argument.

28a723b775c7666281298eab813c63ac42270f95 1522030 11-Sep-2013 humbedooh

mod_lua: Add rudimentary WebSocket support. This is a WIP (emphasis on the W, I and P) and subject to change as the idea surrounding it evolves into something meaningful. But for now, WebSockets, yay! Please do review this!

00bfc96d695252a5ceeeca89c0c0dd960001f812 1520256 05-Sep-2013 humbedooh

mod_lua: init cookie as NULL.

36a06289f5771c73bc74e94e31a975cfb6a80fc0 1520250 05-Sep-2013 humbedooh

remove an unneeded variable I just added, oops.

72f0db905bed932af8a2aecb7cfcacb575a4a82d 1520248 05-Sep-2013 humbedooh

mod_lua: Use ap_cookie_read for reading cookie values, since it's already there.

6e1e45624d6f32110383bb0bd06c254c1dba8123 1519977 04-Sep-2013 humbedooh

Add r:setcookie(key, val, secure, expires) and r:getcookie(key) to the request_rec table.

4f50e7f85eb68ce458a90d1c8b373afee4586e85 1500362 07-Jul-2013 fuankg

Fix some compiler warnings.

4188011767322aafdbe4dd9cf4529a0e42f7c72d 1495270 21-Jun-2013 fuankg

Added new r:touch() function.

99be5832e079d55c7c461374e462205e424e9f31 1489400 04-Jun-2013 fuankg

Added new function r.date_parse_rfc() to mod_lua.

bcd44458491197cb851ad3366db73dbbb7b5bfe4 1489199 04-Jun-2013 fuankg

Fixed crash condition when r.module_info() is called for modules which dont have directives. Bug found and fix submitted by gsmith, slightly modified by fuankg.

f65aaa56f3bd10366ba0cd0cce9fd734cca840e6 1488981 03-Jun-2013 fuankg

Added new functions r:mkdir(), r:mkrdir(), r:rmdir() to mod_lua.

553f11a8f542196fd02498006338dd33c64045c3 1488773 02-Jun-2013 fuankg

Added new function r:htpassword() to mod_lua.

23ab1a43088fe4ea72d18da51daee688f7f810a0 1488480 01-Jun-2013 fuankg

Added optional parameter wanted to r:stat().

b88b508639f63e80d79c6e327ab9115f253b2566 1488115 31-May-2013 fuankg

cosmetics.

c4737d2670800fc4f6c7ab1b619590654c7c84b1 1487956 30-May-2013 fuankg

Remove unneeded exports from mod_lua.

18f4bc62939876bd4950b679c3963aad56be2be1 1486269 25-May-2013 fuankg

Whoops - one empty line too much.

c031160483933f42c2f30564c089680e47b3b408 1486266 25-May-2013 fuankg

Removed a bunch of empty lines.

f0da84dd4e761e345931b6d217dcc8f0eb4d0918 1486265 25-May-2013 fuankg

Changed r.sleep(s) to r.usleep(ms).

3eaf30c217ae0048a8e409bc79c2c3dfdd067fd2 1483348 16-May-2013 fuankg

Cast uint16 return value to int. This fixes a crash on Windows when compiled with MSVC9.

b5c9ff82b59add7f3c6f5bb8d3d91649301bae82 1483343 16-May-2013 fuankg

Fixed Lua type.

763c97702495108c833462a7cebe8e7350e59ff4 1483334 16-May-2013 fuankg

Fixed compiler warning; sorted includes.

57ba49622f2e85b33950c7fb9521e9405bce0c7a 1480871 10-May-2013 fuankg

Revert part of r1476482 which disabled fractions of seconds with r.sleep().

865f80d3771fbe9bec0a7e0bbefc0bf76caf2357 1479718 07-May-2013 rjung

lua header update part 1: EDOESNOTBUILD. First include mod_lua which sets LUA_COMPAT_ALL, then lua.h which uses it. Needed at least to build with lua 5.2.

fef8e101e23d49755224aa016015a41ad980c55b 1476785 28-Apr-2013 fuankg

Fixed the base64 functions.

b4351ab199b3f9ab76f1e900dc28c5d670b4aa75 1476601 27-Apr-2013 fuankg

Added function to get all entries of a directory.

8213af969fe60cf801cdbd4ce61027c73327b0f6 1476482 27-Apr-2013 fuankg

Reduce compiler warnings. Fixed some types, added casts, or changed to proper function.

2393b6d5ba3db700d3a84f5d7c6bc460330d5f2a 1470157 20-Apr-2013 fuankg

Fixed r.started value to return seconds.

87fcce863957bd192299b6bd1f1979f1d2ce2908 1470156 20-Apr-2013 humbedooh

Use a mutex to control read/write for IVM values, so we can reuse the existing structures without running into race conditions. This should get rid of the need to have MaxConnectionsPerChild set to > 0. If a new value is set and is a string, we either use the existing varbuf or grow it accordingly.

a646c04de4fd666f9d33eb624db8b5c448d64b09 1470155 20-Apr-2013 humbedooh

use ap_varbuf instead of allocating new strings each time we override an old one. This uses leaks less memory, but it's still not perfect (but it's a start - maybe I need to use a mutex for this, to override the original object without running into race conditions)

91c502adb1c059cfb4e6cd10c316e545d55036e1 1470117 20-Apr-2013 humbedooh

r.started already exists as a built in variable, so let's not make it a function as well.

d91be0565dde73eaeffd8ce15280287890ebf640 1469844 19-Apr-2013 humbedooh

exists_config_define should return a boolean, not a number, or it will always evaluate to true.

1794507a170af910711b50a9a2fefe4e17918a43 1469751 19-Apr-2013 humbedooh

remove redundant code

5ec23983db597859169a29da98b5c536e882f47d 1469744 19-Apr-2013 humbedooh

Remove lua_ap_banner, as it's no longer being used. Add ivm_get/ivm_set for Inter-VM data transfer. This allows multiple VMs across a process to share data without having to resort to external databases or filesystems. This is a work in progress, and I have yet to work out a proper way of resetting a variable without causing a memory leak (this could be done by allocating a new pool for each object, but I'm trying to see if there's a more efficient way). Comments, ideas etc are most welcome.

4caa1408fedf7ec24e0c0428df68f794f261ebd3 1467822 14-Apr-2013 fuankg

Only ask for the stat info we really use.

a7f677a8b5b18dfa1b36f6117246be8bdc39679b 1467721 14-Apr-2013 fuankg

Return early with an error instead of returning an incomplete match table.

7fceb001e4f3a4a19a9fc5330202a73e632ee128 1467719 14-Apr-2013 fuankg

Whoops, one AP_MAX_REG_MATCH not caught.

e2402be2c3d056219364d164be05e8815b0f7e20 1467718 14-Apr-2013 fuankg

Decouple mod_lua max regex matches from AP_MAX_REG_MATCH. Bumped the default to 25 matches; this default can be overwritten with a CLFAGS define.

95959168cb1d7acfe2b2d7a6e62e8f281d3ffe1b 1467572 13-Apr-2013 humbedooh

silly me

7adb8addcd9ecb7a4dddf3ad0063fb1a811c3b36 1467571 13-Apr-2013 humbedooh

fix some bugs reported by fuankg on Windows release builds.

b4f506081fbde3eab73eb32afea5afaa04f02cb3 1467558 13-Apr-2013 humbedooh

fix up r.banner and r.port so they work like variables and not functions (seems to have already been put in there), duplicate??

2e4968c4ae68acf94b34e1620312d9690f489f23 1467557 13-Apr-2013 humbedooh

fix docs on regex matching, change the actual ordering of arguments to match the docs, and enforce AP_MAX_REG_MATCH in the function, should it somehow return more matches than we have allocated

c0912b12ad4c2f5732e40df95717f066c02f8319 1467427 12-Apr-2013 fuankg

MOdified r:stat() to return finer time granularity. the atime, mtime, ctime, size values ar now in mod_lua 64bit as received from apr_stat().

df0d7016cdcd847f2e39ea721af669b90adf3516 1467409 12-Apr-2013 fuankg

Fixed typo; followup to r1467188.

3500d85a97ed1265e24bfc50244aff8bd3523070 1467188 12-Apr-2013 fuankg

Added optional parameter flags to lua_ap_regex(). This enables to call r:regex() with a flag to do case-insensitive matches.

28b65fb05428d30c8adc6de6e8d442022717bd4f 1466743 11-Apr-2013 fuankg

Fixed Lua r:stat() time values.

602e04bc071f0a0b8a6f3f13363d0fd820228b28 1445609 13-Feb-2013 humbedooh

r:regex was not returning the last captured group, as we were one off on how many captures to push to the table.

80533dc1474da397fff6a93d76d014485c3e2b73 1434065 16-Jan-2013 humbedooh

If r:regex does not match, only return 'false', don't try to create error messages, because there should not be any - it's either match or no match here at this point.

748982bb948086d4e34e62bb731a0de8ae4f4aa5 1433967 16-Jan-2013 humbedooh

Using the traditional way of declaring Lua functions does not seem to work with NetWare (and possibly Windows too?) Thus, at least until we find a smarter way, we have to move the r:* functions into lua_request.c and connect them from there. The only functional change is that the transferred functions are now called through the request object instead of the apache2 package. The distinction between what merited it to be in either structure seems very vague, so for now, we'll keep the HTTP return codes in the apache2 table, and the request/server functions in the request object.

4ca22cf27ccfcefab65ff6c66da12bba69e33948 1430225 08-Jan-2013 humbedooh

Add database features for mod_lua (apr_dbd + mod_dbd). See documentation update for API and examples.

cc150a9f6921c716256f94eaaf81075606d90890 1424938 21-Dec-2012 humbedooh

Remove reference to top secret project! You did not see this commit message ;)

5a30dff66e85dd648ccbe8cbebfa200f65f64407 1424723 20-Dec-2012 humbedooh

mod_lua: Fix multipart post parsing, so it doesn't include random bytes at the end.

f88951ace0ecc3021ece862789272f9fe5d7f685 1422072 14-Dec-2012 humbedooh

mod_lua: Fix Windows compatibility issues and remove an unused variable. Thanks, Gregg!

9ef862e80ed33c64b645dc4fc4dacc9fb48c9c62 1421780 14-Dec-2012 humbedooh

mod_lua: Fix signedness/other small bugs as per cjaillet/fuankg's emails - thanks guys :)

0fb34fc6011379fe63e0ee2fdc157db098c33a82 1420286 11-Dec-2012 humbedooh

lua_request.c: Add support for parsing multipart form data via r:parsebody. This is a bit RFC-centric, suggestions are most welcome.

535d4a7de2309eff4c143c64dda8d712ce5161a3 1420176 11-Dec-2012 humbedooh

mod_lua/lua_request.c: Make r:write return the return value of ap_rwrite, so mod_lua can check for success/failure in writing.

10961a2f60207cb873d889bb28b1f0ef707a4311 1370158 07-Aug-2012 humbedooh

mod_lua: Add r:flush, r:sendfile as well as additional request information in the request_rec structure

3eccdc65209a3c5438d27ce4febe8a5c8bbd6bd0 1361298 13-Jul-2012 humbedooh

- Define LUA_COMPAT_ALL so mod_lua will be compatible with Lua 5.2 - Add an optional integer argument for parsebody, specifying the maximum size of POST that will be accepted.

ef056d09d39412b9f7d9b71f48ff3d00222833f6 1352047 20-Jun-2012 humbedooh

Add the missing parsebody function to mod_lua, for parsing POST data. PR 53064.

f5b3f41700a107b9df2b3c5a1cc3e5ea775fd8fe 1351014 17-Jun-2012 sf

mod_lua: Add a few missing request_rec fields. Rename remote_ip to client_ip to match conn_rec

4f947e3c083ecb8712e69f002f6f203661fe0d16 1351013 17-Jun-2012 sf

allow tail call optimization in log methods, remove foo method

bb57ae727420d91974aef38a9db40c2293c90604 1300766 14-Mar-2012 sf

Fix some typos

c41be3600a58bd39a76d1215abcdbbd8e9b1c356 1214015 14-Dec-2011 minfrin

Further clarify the naming of the entity that directly connects to us by calling that entity a client instead of a peer.

185aa71728867671e105178b4c66fbc22b65ae26 1209766 03-Dec-2011 sf

Add lots of unique tags to error log messages

/httpd/docs/log-message-tags/next-number /httpd/modules/aaa/mod_access_compat.c /httpd/modules/aaa/mod_allowmethods.c /httpd/modules/aaa/mod_auth_basic.c /httpd/modules/aaa/mod_auth_digest.c /httpd/modules/aaa/mod_auth_form.c /httpd/modules/aaa/mod_authn_anon.c /httpd/modules/aaa/mod_authn_core.c /httpd/modules/aaa/mod_authn_dbd.c /httpd/modules/aaa/mod_authn_dbm.c /httpd/modules/aaa/mod_authn_file.c /httpd/modules/aaa/mod_authn_socache.c /httpd/modules/aaa/mod_authnz_ldap.c /httpd/modules/aaa/mod_authz_core.c /httpd/modules/aaa/mod_authz_dbd.c /httpd/modules/aaa/mod_authz_dbm.c /httpd/modules/aaa/mod_authz_groupfile.c /httpd/modules/aaa/mod_authz_host.c /httpd/modules/aaa/mod_authz_owner.c /httpd/modules/aaa/mod_authz_user.c /httpd/modules/apreq/filter.c /httpd/modules/arch/netware/mod_netware.c /httpd/modules/arch/netware/mod_nw_ssl.c /httpd/modules/arch/unix/mod_privileges.c /httpd/modules/arch/unix/mod_unixd.c /httpd/modules/arch/win32/mod_isapi.c /httpd/modules/arch/win32/mod_win32.c /httpd/modules/cache/cache_storage.c /httpd/modules/cache/cache_util.c /httpd/modules/cache/mod_cache.c /httpd/modules/cache/mod_cache_disk.c /httpd/modules/cache/mod_file_cache.c /httpd/modules/cache/mod_socache_dbm.c /httpd/modules/cache/mod_socache_dc.c /httpd/modules/cache/mod_socache_memcache.c /httpd/modules/cache/mod_socache_shmcb.c /httpd/modules/cluster/mod_heartbeat.c /httpd/modules/cluster/mod_heartmonitor.c /httpd/modules/core/mod_so.c /httpd/modules/core/mod_watchdog.c /httpd/modules/database/mod_dbd.c /httpd/modules/dav/fs/dbm.c /httpd/modules/dav/main/mod_dav.c /httpd/modules/dav/main/util_lock.c /httpd/modules/echo/mod_echo.c /httpd/modules/examples/mod_example_hooks.c /httpd/modules/examples/mod_example_ipc.c /httpd/modules/experimental/mod_noloris.c /httpd/modules/filters/mod_charset_lite.c /httpd/modules/filters/mod_deflate.c /httpd/modules/filters/mod_ext_filter.c /httpd/modules/filters/mod_filter.c /httpd/modules/filters/mod_include.c /httpd/modules/filters/mod_proxy_html.c /httpd/modules/filters/mod_ratelimit.c /httpd/modules/filters/mod_reflector.c /httpd/modules/filters/mod_reqtimeout.c /httpd/modules/filters/mod_request.c /httpd/modules/filters/mod_sed.c /httpd/modules/filters/mod_substitute.c /httpd/modules/filters/mod_xml2enc.c /httpd/modules/generators/mod_asis.c /httpd/modules/generators/mod_autoindex.c /httpd/modules/generators/mod_cgi.c /httpd/modules/generators/mod_cgid.c /httpd/modules/generators/mod_status.c /httpd/modules/generators/mod_suexec.c /httpd/modules/http/byterange_filter.c /httpd/modules/http/http_filters.c /httpd/modules/http/http_protocol.c /httpd/modules/http/http_request.c /httpd/modules/http/mod_mime.c /httpd/modules/ldap/util_ldap.c /httpd/modules/ldap/util_ldap_cache_mgr.c /httpd/modules/loggers/mod_log_config.c /httpd/modules/loggers/mod_log_debug.c /httpd/modules/loggers/mod_log_forensic.c lua_config.c lua_request.c lua_vmprep.c mod_lua.c /httpd/modules/mappers/mod_actions.c /httpd/modules/mappers/mod_alias.c /httpd/modules/mappers/mod_imagemap.c /httpd/modules/mappers/mod_negotiation.c /httpd/modules/mappers/mod_rewrite.c /httpd/modules/metadata/mod_cern_meta.c /httpd/modules/metadata/mod_env.c /httpd/modules/metadata/mod_expires.c /httpd/modules/metadata/mod_headers.c /httpd/modules/metadata/mod_ident.c /httpd/modules/metadata/mod_mime_magic.c /httpd/modules/metadata/mod_remoteip.c /httpd/modules/metadata/mod_setenvif.c /httpd/modules/metadata/mod_unique_id.c /httpd/modules/metadata/mod_usertrack.c /httpd/modules/proxy/ajp_header.c /httpd/modules/proxy/ajp_link.c /httpd/modules/proxy/ajp_msg.c /httpd/modules/proxy/ajp_utils.c /httpd/modules/proxy/balancers/mod_lbmethod_bybusyness.c /httpd/modules/proxy/balancers/mod_lbmethod_byrequests.c /httpd/modules/proxy/balancers/mod_lbmethod_bytraffic.c /httpd/modules/proxy/balancers/mod_lbmethod_heartbeat.c /httpd/modules/proxy/examples/mod_lbmethod_rr.c /httpd/modules/proxy/mod_proxy.c /httpd/modules/proxy/mod_proxy_ajp.c /httpd/modules/proxy/mod_proxy_balancer.c /httpd/modules/proxy/mod_proxy_connect.c /httpd/modules/proxy/mod_proxy_express.c /httpd/modules/proxy/mod_proxy_fcgi.c /httpd/modules/proxy/mod_proxy_fdpass.c /httpd/modules/proxy/mod_proxy_ftp.c /httpd/modules/proxy/mod_proxy_http.c /httpd/modules/proxy/mod_proxy_scgi.c /httpd/modules/proxy/mod_serf.c /httpd/modules/proxy/proxy_util.c /httpd/modules/session/mod_session.c /httpd/modules/session/mod_session_crypto.c /httpd/modules/session/mod_session_dbd.c /httpd/modules/ssl/mod_ssl.c /httpd/modules/ssl/ssl_engine_init.c /httpd/modules/ssl/ssl_engine_io.c /httpd/modules/ssl/ssl_engine_kernel.c /httpd/modules/ssl/ssl_engine_log.c /httpd/modules/ssl/ssl_engine_mutex.c /httpd/modules/ssl/ssl_engine_ocsp.c /httpd/modules/ssl/ssl_engine_pphrase.c /httpd/modules/ssl/ssl_engine_rand.c /httpd/modules/ssl/ssl_engine_vars.c /httpd/modules/ssl/ssl_scache.c /httpd/modules/ssl/ssl_util_ocsp.c /httpd/modules/ssl/ssl_util_stapling.c /httpd/modules/test/mod_dialup.c /httpd/modules/test/mod_optional_fn_export.c /httpd/modules/test/mod_optional_hook_import.c /httpd/os/bs2000/os.c /httpd/os/unix/unixd.c /httpd/server/config.c /httpd/server/core.c /httpd/server/core_filters.c /httpd/server/listen.c /httpd/server/log.c /httpd/server/main.c /httpd/server/mpm/event/event.c /httpd/server/mpm/event/pod.c /httpd/server/mpm/mpmt_os2/mpmt_os2.c /httpd/server/mpm/mpmt_os2/mpmt_os2_child.c /httpd/server/mpm/netware/mpm_netware.c /httpd/server/mpm/prefork/prefork.c /httpd/server/mpm/simple/simple_api.c /httpd/server/mpm/simple/simple_children.c /httpd/server/mpm/simple/simple_core.c /httpd/server/mpm/simple/simple_io.c /httpd/server/mpm/simple/simple_run.c /httpd/server/mpm/winnt/child.c /httpd/server/mpm/winnt/mpm_winnt.c /httpd/server/mpm/winnt/service.c /httpd/server/mpm/worker/pod.c /httpd/server/mpm/worker/worker.c /httpd/server/mpm_common.c /httpd/server/mpm_unix.c /httpd/server/protocol.c /httpd/server/request.c /httpd/server/scoreboard.c /httpd/server/util.c /httpd/server/util_cookies.c /httpd/server/util_ebcdic.c /httpd/server/util_expr_eval.c /httpd/server/util_filter.c /httpd/server/util_mutex.c /httpd/server/util_xml.c /httpd/server/vhost.c
8269892c0023355f51a3f67be442662aefdc6f92 1206291 25-Nov-2011 minfrin

Introduce a per connection "peer_ip" and a per request "client_ip" to distinguish between the raw IP address of the connection and the effective IP address of the request.

253724bc048368db7a7620b292ee90aee3b79878 1200580 10-Nov-2011 jorton

* modules/lua/mod_lua.c (ap_lua_ssl_is_https): New function. (lua_post_config): Pick up ssl_is_https optional function. * modules/lua/lua_request.c (req_ssl_is_https_field): New function. (ap_lua_load_request): Map is_https field to above.

fa1f6baa7cf3784b42ce8755d0564e1d7b87060c 1200432 10-Nov-2011 covener

expose r:trace1-8

4872f2c13be21115687dedcdf2515980fde93b70 1199056 08-Nov-2011 covener

mod_lua: Expose SSL variables via r:ssl_var_lookup()

1a5230be3f8ae99f7b34cd352d89699847626d86 1199028 08-Nov-2011 covener

correct return val, the char* is pushed on the lua stack.

aeba39289ddac0ed8e39d2c39908f91324ff9c03 1197838 05-Nov-2011 covener

provide ap_escape_html as r:escape_html()

8a718e8904b5c30d6ac19c8271d4b70dffb960a5 1195172 30-Oct-2011 covener

make r.handler and r.proxyreq readable too

0b38656f11127e404f913fad1573bc7b42868654 1195168 30-Oct-2011 covener

add constants for PROXYREQ_* to the apache2 global, allow r.proxyreq and r.handler to be writable.

b3c110de5a0e4248a2c98a92b651f7032adc7cf8 1195167 30-Oct-2011 covener

alphabetize writable lua properties and use strcmp() for the oddball that's just testing quality of "user".

5fcf1d4211ba64b1e9c7647fcc615a9e850c6c88 1194997 29-Oct-2011 covener

make r.args read/write for rewrite refugees.

aa8ce00557e35b6042be4afa1684b2322def4520 1187743 22-Oct-2011 covener

expose ap_construct_url to lua scripts

3261b7df2cb7439d9171ea29cd415fced8dcd2f4 1180332 08-Oct-2011 sf

Fix format string bugs in mod_lua. Found by gcc and pointed out by Igor Galic.

5bfaaf573bacb45c1cf290ce85ecc676587e8a64 1174751 23-Sep-2011 jim

Cleanup effort in prep for GA push: Trim trailing whitespace... no func change

/httpd/modules/aaa/mod_allowmethods.c /httpd/modules/aaa/mod_auth_digest.c /httpd/modules/aaa/mod_authn_socache.c /httpd/modules/aaa/mod_authnz_ldap.c /httpd/modules/aaa/mod_authz_core.c /httpd/modules/aaa/mod_authz_dbd.c /httpd/modules/aaa/mod_authz_dbm.c /httpd/modules/aaa/mod_authz_host.c /httpd/modules/arch/netware/mod_netware.c /httpd/modules/arch/unix/mod_unixd.c /httpd/modules/arch/win32/mod_isapi.c /httpd/modules/cache/mod_socache_dbm.c /httpd/modules/cache/mod_socache_dc.c /httpd/modules/cache/mod_socache_memcache.c /httpd/modules/cache/mod_socache_shmcb.c /httpd/modules/cluster/mod_heartmonitor.c /httpd/modules/core/mod_so.c /httpd/modules/dav/fs/repos.c /httpd/modules/dav/main/mod_dav.c /httpd/modules/dav/main/util.c /httpd/modules/echo/mod_echo.c /httpd/modules/examples/mod_case_filter.c /httpd/modules/examples/mod_example_hooks.c /httpd/modules/examples/mod_example_ipc.c /httpd/modules/experimental/mod_noloris.c /httpd/modules/filters/mod_buffer.c /httpd/modules/filters/mod_charset_lite.c /httpd/modules/filters/mod_data.c /httpd/modules/filters/mod_deflate.c /httpd/modules/filters/mod_filter.c /httpd/modules/filters/mod_include.c /httpd/modules/filters/mod_reqtimeout.c /httpd/modules/filters/mod_sed.c /httpd/modules/filters/mod_substitute.c /httpd/modules/filters/regexp.c /httpd/modules/filters/sed0.c /httpd/modules/filters/sed1.c /httpd/modules/generators/mod_autoindex.c /httpd/modules/generators/mod_cgi.c /httpd/modules/generators/mod_cgid.c /httpd/modules/generators/mod_status.c /httpd/modules/http/byterange_filter.c /httpd/modules/http/http_core.c /httpd/modules/http/http_filters.c /httpd/modules/http/http_protocol.c /httpd/modules/http/http_request.c /httpd/modules/ldap/util_ldap.c /httpd/modules/loggers/mod_log_config.c /httpd/modules/loggers/mod_log_forensic.c lua_request.c lua_vmprep.c mod_lua.c /httpd/modules/mappers/mod_dir.c /httpd/modules/mappers/mod_imagemap.c /httpd/modules/mappers/mod_rewrite.c /httpd/modules/mappers/mod_speling.c /httpd/modules/mappers/mod_userdir.c /httpd/modules/metadata/mod_remoteip.c /httpd/modules/proxy/balancers/mod_lbmethod_bybusyness.c /httpd/modules/proxy/balancers/mod_lbmethod_byrequests.c /httpd/modules/proxy/balancers/mod_lbmethod_heartbeat.c /httpd/modules/proxy/examples/mod_lbmethod_rr.c /httpd/modules/proxy/mod_proxy.c /httpd/modules/proxy/mod_proxy_ajp.c /httpd/modules/proxy/mod_proxy_balancer.c /httpd/modules/proxy/mod_proxy_connect.c /httpd/modules/proxy/mod_proxy_express.c /httpd/modules/proxy/mod_proxy_fcgi.c /httpd/modules/proxy/mod_proxy_fdpass.c /httpd/modules/proxy/mod_proxy_ftp.c /httpd/modules/proxy/mod_proxy_http.c /httpd/modules/proxy/mod_proxy_scgi.c /httpd/modules/proxy/mod_serf.c /httpd/modules/slotmem/mod_slotmem_plain.c /httpd/modules/ssl/ssl_engine_config.c /httpd/modules/ssl/ssl_engine_init.c /httpd/modules/ssl/ssl_engine_io.c /httpd/modules/ssl/ssl_engine_kernel.c /httpd/modules/ssl/ssl_engine_log.c /httpd/modules/ssl/ssl_engine_ocsp.c /httpd/modules/ssl/ssl_engine_pphrase.c /httpd/modules/ssl/ssl_engine_vars.c /httpd/modules/ssl/ssl_scache.c /httpd/modules/ssl/ssl_util.c /httpd/modules/ssl/ssl_util_ocsp.c /httpd/modules/ssl/ssl_util_ssl.c /httpd/modules/ssl/ssl_util_stapling.c /httpd/modules/test/mod_dialup.c /httpd/server/config.c /httpd/server/log.c /httpd/server/main.c /httpd/server/mpm/event/event.c /httpd/server/mpm/event/fdqueue.c /httpd/server/mpm/prefork/prefork.c /httpd/server/mpm/simple/simple_children.c /httpd/server/mpm/simple/simple_core.c /httpd/server/mpm/simple/simple_io.c /httpd/server/mpm/simple/simple_run.c /httpd/server/mpm/winnt/child.c /httpd/server/mpm/winnt/mpm_winnt.c /httpd/server/mpm/winnt/nt_eventlog.c /httpd/server/mpm/winnt/service.c /httpd/server/mpm/worker/worker.c /httpd/server/mpm_unix.c /httpd/server/protocol.c /httpd/server/request.c /httpd/server/util.c /httpd/server/util_expr_eval.c /httpd/server/util_expr_parse.c /httpd/server/util_expr_scan.c /httpd/server/util_mutex.c /httpd/server/util_pcre.c /httpd/server/util_script.c /httpd/server/vhost.c /httpd/support/ab.c /httpd/support/htcacheclean.c /httpd/support/htpasswd.c /httpd/support/rotatelogs.c /httpd/support/win32/ApacheMonitor.c
945b8ce006081bd163060da0f32b70c139842318 967143 23-Jul-2010 brianm

expose subprocess_env on lua request object

e5f6d0fcb6e106fe6f60dce829f9d82fbdb111b4 965314 19-Jul-2010 fuankg

Added casts to make strict compilers happy.

53458d6081a7a6dc3b217431112dfc2fb7ee670f 953216 10-Jun-2010 wrowe

Mop up more than a dozen const'ness faults

1634af6871d0518c6d3fe3919158dd3401e00add 953203 10-Jun-2010 wrowe

Drop ap_body_to_table due to missing constraints; a DoS waiting for an exploit. Some mod_lua fan aught to revisit this and provide a sensible implementation.

36ef8f77bffe75d1aa327882be1b5bdbe2ff567a 951895 06-Jun-2010 sf

Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take advantage of per-module loglevels

/httpd/modules/aaa/mod_access_compat.c /httpd/modules/aaa/mod_auth_basic.c /httpd/modules/aaa/mod_auth_digest.c /httpd/modules/aaa/mod_auth_form.c /httpd/modules/aaa/mod_authn_anon.c /httpd/modules/aaa/mod_authn_core.c /httpd/modules/aaa/mod_authn_dbd.c /httpd/modules/aaa/mod_authn_dbm.c /httpd/modules/aaa/mod_authn_file.c /httpd/modules/aaa/mod_authnz_ldap.c /httpd/modules/aaa/mod_authz_core.c /httpd/modules/aaa/mod_authz_dbd.c /httpd/modules/aaa/mod_authz_dbm.c /httpd/modules/aaa/mod_authz_groupfile.c /httpd/modules/aaa/mod_authz_host.c /httpd/modules/aaa/mod_authz_owner.c /httpd/modules/aaa/mod_authz_user.c /httpd/modules/arch/netware/mod_netware.c /httpd/modules/arch/netware/mod_nw_ssl.c /httpd/modules/arch/unix/mod_privileges.c /httpd/modules/arch/unix/mod_unixd.c /httpd/modules/arch/win32/mod_isapi.c /httpd/modules/arch/win32/mod_win32.c /httpd/modules/cache/cache_cache.c /httpd/modules/cache/cache_storage.c /httpd/modules/cache/cache_util.c /httpd/modules/cache/mod_cache.c /httpd/modules/cache/mod_disk_cache.c /httpd/modules/cache/mod_file_cache.c /httpd/modules/cache/mod_socache_dbm.c /httpd/modules/cache/mod_socache_dc.c /httpd/modules/cache/mod_socache_memcache.c /httpd/modules/cache/mod_socache_shmcb.c /httpd/modules/cluster/mod_heartbeat.c /httpd/modules/cluster/mod_heartmonitor.c /httpd/modules/core/mod_so.c /httpd/modules/core/mod_watchdog.c /httpd/modules/database/mod_dbd.c /httpd/modules/dav/fs/mod_dav_fs.c /httpd/modules/dav/lock/mod_dav_lock.c /httpd/modules/dav/main/mod_dav.c /httpd/modules/dav/main/util_lock.c /httpd/modules/debugging/mod_bucketeer.c /httpd/modules/debugging/mod_dumpio.c /httpd/modules/echo/mod_echo.c /httpd/modules/examples/mod_case_filter.c /httpd/modules/examples/mod_case_filter_in.c /httpd/modules/examples/mod_example_hooks.c /httpd/modules/examples/mod_example_ipc.c /httpd/modules/experimental/mod_noloris.c /httpd/modules/filters/mod_buffer.c /httpd/modules/filters/mod_charset_lite.c /httpd/modules/filters/mod_deflate.c /httpd/modules/filters/mod_ext_filter.c /httpd/modules/filters/mod_filter.c /httpd/modules/filters/mod_include.c /httpd/modules/filters/mod_ratelimit.c /httpd/modules/filters/mod_reflector.c /httpd/modules/filters/mod_reqtimeout.c /httpd/modules/filters/mod_request.c /httpd/modules/filters/mod_sed.c /httpd/modules/filters/mod_substitute.c /httpd/modules/generators/mod_asis.c /httpd/modules/generators/mod_autoindex.c /httpd/modules/generators/mod_cgi.c /httpd/modules/generators/mod_cgid.c /httpd/modules/generators/mod_info.c /httpd/modules/generators/mod_status.c /httpd/modules/generators/mod_suexec.c /httpd/modules/http/byterange_filter.c /httpd/modules/http/http_core.c /httpd/modules/http/http_filters.c /httpd/modules/http/http_protocol.c /httpd/modules/http/http_request.c /httpd/modules/http/mod_mime.c /httpd/modules/ldap/util_ldap.c /httpd/modules/ldap/util_ldap_cache_mgr.c /httpd/modules/loggers/mod_log_config.c /httpd/modules/loggers/mod_log_forensic.c /httpd/modules/loggers/mod_logio.c lua_config.c lua_request.c lua_vmprep.c mod_lua.c /httpd/modules/mappers/mod_actions.c /httpd/modules/mappers/mod_alias.c /httpd/modules/mappers/mod_dir.c /httpd/modules/mappers/mod_imagemap.c /httpd/modules/mappers/mod_negotiation.c /httpd/modules/mappers/mod_rewrite.c /httpd/modules/mappers/mod_speling.c /httpd/modules/mappers/mod_userdir.c /httpd/modules/mappers/mod_vhost_alias.c /httpd/modules/metadata/mod_cern_meta.c /httpd/modules/metadata/mod_env.c /httpd/modules/metadata/mod_expires.c /httpd/modules/metadata/mod_headers.c /httpd/modules/metadata/mod_ident.c /httpd/modules/metadata/mod_mime_magic.c /httpd/modules/metadata/mod_remoteip.c /httpd/modules/metadata/mod_setenvif.c /httpd/modules/metadata/mod_unique_id.c /httpd/modules/metadata/mod_usertrack.c /httpd/modules/metadata/mod_version.c /httpd/modules/proxy/ajp_header.c /httpd/modules/proxy/ajp_link.c /httpd/modules/proxy/ajp_msg.c /httpd/modules/proxy/ajp_utils.c /httpd/modules/proxy/balancers/mod_lbmethod_bybusyness.c /httpd/modules/proxy/balancers/mod_lbmethod_byrequests.c /httpd/modules/proxy/balancers/mod_lbmethod_bytraffic.c /httpd/modules/proxy/balancers/mod_lbmethod_heartbeat.c /httpd/modules/proxy/examples/mod_lbmethod_rr.c /httpd/modules/proxy/mod_proxy.c /httpd/modules/proxy/mod_proxy_ajp.c /httpd/modules/proxy/mod_proxy_balancer.c /httpd/modules/proxy/mod_proxy_connect.c /httpd/modules/proxy/mod_proxy_fcgi.c /httpd/modules/proxy/mod_proxy_fdpass.c /httpd/modules/proxy/mod_proxy_ftp.c /httpd/modules/proxy/mod_proxy_http.c /httpd/modules/proxy/mod_proxy_scgi.c /httpd/modules/proxy/mod_serf.c /httpd/modules/proxy/proxy_util.c /httpd/modules/session/mod_session.c /httpd/modules/session/mod_session_cookie.c /httpd/modules/session/mod_session_crypto.c /httpd/modules/session/mod_session_dbd.c /httpd/modules/slotmem/mod_slotmem_plain.c /httpd/modules/slotmem/mod_slotmem_shm.c /httpd/modules/test/mod_dialup.c /httpd/modules/test/mod_optional_fn_export.c /httpd/modules/test/mod_optional_fn_import.c /httpd/modules/test/mod_optional_hook_export.c /httpd/modules/test/mod_optional_hook_import.c /httpd/os/bs2000/os.c /httpd/os/unix/unixd.c /httpd/server/core_filters.c /httpd/server/listen.c /httpd/server/main.c /httpd/server/mpm/event/event.c /httpd/server/mpm/event/pod.c /httpd/server/mpm/mpmt_os2/mpmt_os2.c /httpd/server/mpm/mpmt_os2/mpmt_os2_child.c /httpd/server/mpm/netware/mpm_netware.c /httpd/server/mpm/prefork/prefork.c /httpd/server/mpm/simple/simple_api.c /httpd/server/mpm/simple/simple_children.c /httpd/server/mpm/simple/simple_core.c /httpd/server/mpm/simple/simple_io.c /httpd/server/mpm/simple/simple_run.c /httpd/server/mpm/winnt/child.c /httpd/server/mpm/winnt/mpm_winnt.c /httpd/server/mpm/winnt/service.c /httpd/server/mpm/worker/pod.c /httpd/server/mpm/worker/worker.c /httpd/server/mpm_common.c /httpd/server/mpm_unix.c /httpd/server/protocol.c /httpd/server/request.c /httpd/server/scoreboard.c /httpd/server/util.c /httpd/server/util_cookies.c /httpd/server/util_ebcdic.c /httpd/server/util_expr.c /httpd/server/util_filter.c /httpd/server/util_mutex.c /httpd/server/util_script.c /httpd/server/util_xml.c /httpd/server/vhost.c
9f2628baf370d9cf6197b7ca9358b0fb18bd1ce3 951894 06-Jun-2010 sf

Fix some modules to make them compile with per-module loglevels.

46bd0640956091b1ff31bda67be815bd9a616613 833141 05-Nov-2009 brianm

expose r->notes to lua

c6afffe96adf806113561e604e9f8481eab49300 832910 05-Nov-2009 jorton

* modules/lua/: s/apr_strnatcmp/strcmp/ - strnat*cmp functions are for natural order string sorting.

af3c7af9e302f44612de2ae9fc71cfc55186eb1d 832905 05-Nov-2009 brianm

allow setting of r->user from lua

482f22798e7d699d82b5b4fefa437133ffcb3bdb 832901 05-Nov-2009 brianm

map r->err_headers_out into lua

7c63cb1050250515ed520f11f4d797dab03a6dae 808727 28-Aug-2009 wrowe

push_connection, push_server also targetted for export, no?

b4a69660c802909ef489e1b605beb2dcc9837909 758428 25-Mar-2009 wrowe

fix symbol space and exports

d99e8bd4ec1c77b774ebf859c3fdba73af81791c 748949 01-Mar-2009 brianm

remove leftover debug statement

c5e4fa215ad0246f3f58eed8fd6f5b58e65fa044 748948 01-Mar-2009 brianm

change syntax for getting document root in mod_lua to r.document_root, suggested by Bertrand Mansion

4eda6116f974311ae4b9e75f2d45ad2913b86297 748946 01-Mar-2009 brianm

change r.content_type = "something" to use ap_set_content_type, which it should as was pointed out by Bertrand Mansion

e4709c20138a8cd7c85a6ffba716d85fd2f6cdf5 737293 24-Jan-2009 brianm

changes headers_in and headers_out handling in mod_lua to map apr_table_t instances as boxed pointers

8f4ef510114fc4bb87a2d188b6eac472b187038a 729194 24-Dec-2008 pquerna

Add in the ability to fetch from headers_in.

22368ac3329d698360f22bf1adb05825cc5d5773 728544 21-Dec-2008 pquerna

Fix more ISO C90 forbids mixed declarations and code...

9513a69d08492374398ea5c380ef5ddd62094e0f 728540 21-Dec-2008 pquerna

Rename rstack_dump to apl_rstack_dump.

21776881c58b65ff1c0a787f8412dbc83d0c5100 728539 21-Dec-2008 pquerna

Attempt to make mod_lua compile under a strict c89 compiler by moving all variable declarations to be before code.

2d8099733b19806900cb95470c5715df2e5a1f3d 728516 21-Dec-2008 pquerna

Reformat mod_lua according to the HTTP Server Project C Style Guide: <http://httpd.apache.org/dev/styleguide.html> No functional changes.

e0e7a4768845d518c21ce98d359d2ba8314832ba 728508 21-Dec-2008 pquerna

Rename all files in mod_lua to have a lua_ prefix, as things like 'config.h' are way to generic and will often conflict with other include files.