d9e3aa7316
Remove reference to top secret project! You did not see this commit message ;)
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1424938 13f79535-47bb-0310-9956-ffa450edef68
2012-12-21 14:49:06 +00:00
8767ad9988
mod_lua: Fix multipart post parsing, so it doesn't include random bytes at the end.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1424723 13f79535-47bb-0310-9956-ffa450edef68
2012-12-20 21:52:03 +00:00
ff81e58f05
mod_lua: Fix Windows compatibility issues and remove an unused variable. Thanks, Gregg!
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1422072 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 20:44:41 +00:00
df178d1e41
mod_lua: Fix signedness/other small bugs as per cjaillet/fuankg's emails - thanks guys :)
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1421780 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 10:15:37 +00:00
1a50285096
lua_request.c: Add support for parsing multipart form data via r:parsebody. This is a bit RFC-centric, suggestions are most welcome.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1420286 13f79535-47bb-0310-9956-ffa450edef68
2012-12-11 17:09:40 +00:00
c36aeb051d
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.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1420176 13f79535-47bb-0310-9956-ffa450edef68
2012-12-11 14:06:41 +00:00
2e9e74fd6c
mod_lua: Add r:flush, r:sendfile as well as additional request information in the request_rec structure
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1370158 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 10:02:27 +00:00
f921f8cbde
- 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.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1361298 13f79535-47bb-0310-9956-ffa450edef68
2012-07-13 16:59:07 +00:00
68bbfde6ea
Add the missing parsebody function to mod_lua, for parsing POST data.
...
PR 53064.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1352047 13f79535-47bb-0310-9956-ffa450edef68
2012-06-20 11:20:36 +00:00
32f5f54c25
mod_lua: Add a few missing request_rec fields. Rename remote_ip to
...
client_ip to match conn_rec
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1351014 13f79535-47bb-0310-9956-ffa450edef68
2012-06-16 22:41:01 +00:00
eca6d64df0
allow tail call optimization in log methods, remove foo method
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1351013 13f79535-47bb-0310-9956-ffa450edef68
2012-06-16 22:39:54 +00:00
03a8b1b4c2
Fix some typos
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1300766 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 22:21:50 +00:00
cb21a0dbcc
Further clarify the naming of the entity that directly connects to us by
...
calling that entity a client instead of a peer.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1214015 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 01:10:52 +00:00
92e366007c
Add lots of unique tags to error log messages
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209766 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 23:02:04 +00:00
394e5594d6
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.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1206291 13f79535-47bb-0310-9956-ffa450edef68
2011-11-25 19:42:04 +00:00
48a5e0390d
* 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.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200580 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 21:45:27 +00:00
e66f481ac3
expose r:trace1-8
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200432 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 17:10:17 +00:00
2af550c8c9
mod_lua: Expose SSL variables via r:ssl_var_lookup()
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199056 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 01:53:15 +00:00
eaffe604d0
correct return val, the char* is pushed on the lua stack.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199028 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 00:25:47 +00:00
9143f29d2d
provide ap_escape_html as r:escape_html()
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1197838 13f79535-47bb-0310-9956-ffa450edef68
2011-11-05 00:16:36 +00:00
214b8e88b0
make r.handler and r.proxyreq readable too
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1195172 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 14:39:20 +00:00
1abbc00118
add constants for PROXYREQ_* to the apache2 global, allow r.proxyreq and
...
r.handler to be writable.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1195168 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 14:30:04 +00:00
89b65554be
alphabetize writable lua properties and use strcmp() for the oddball that's
...
just testing quality of "user".
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1195167 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 14:19:45 +00:00
70ebce981b
make r.args read/write for rewrite refugees.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1194997 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 19:42:32 +00:00
10c800bb95
expose ap_construct_url to lua scripts
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1187743 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 18:07:43 +00:00
45cbf99b00
Fix format string bugs in mod_lua. Found by gcc and pointed out by Igor Galic.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1180332 13f79535-47bb-0310-9956-ffa450edef68
2011-10-08 07:50:06 +00:00
427c85bd23
Cleanup effort in prep for GA push:
...
Trim trailing whitespace... no func change
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174751 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 13:39:32 +00:00
12a304c223
expose subprocess_env on lua request object
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@967143 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 15:52:37 +00:00
0cda847081
Added casts to make strict compilers happy.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@965314 13f79535-47bb-0310-9956-ffa450edef68
2010-07-18 23:02:29 +00:00
f0d46a36f1
Mop up more than a dozen const'ness faults
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@953216 13f79535-47bb-0310-9956-ffa450edef68
2010-06-10 04:42:52 +00:00
7716d3c3e3
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.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@953203 13f79535-47bb-0310-9956-ffa450edef68
2010-06-10 03:02:07 +00:00
ebb62867fb
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
...
advantage of per-module loglevels
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951895 13f79535-47bb-0310-9956-ffa450edef68
2010-06-06 16:59:50 +00:00
9d791e0e60
Fix some modules to make them compile with per-module loglevels.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951894 13f79535-47bb-0310-9956-ffa450edef68
2010-06-06 16:56:08 +00:00
796d34a469
expose r->notes to lua
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@833141 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 19:31:27 +00:00
0aa10f9c58
* modules/lua/: s/apr_strnatcmp/strcmp/ - strnat*cmp functions are
...
for natural order string sorting.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832910 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 23:39:57 +00:00
4ae86f20e4
allow setting of r->user from lua
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832905 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 23:28:22 +00:00
813ff64ace
map r->err_headers_out into lua
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832901 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 23:22:15 +00:00
0da446e9ea
push_connection, push_server also targetted for export, no?
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@808727 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 01:40:44 +00:00
aa4b1cff0b
fix symbol space and exports
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@758428 13f79535-47bb-0310-9956-ffa450edef68
2009-03-25 20:09:08 +00:00
0b298347d5
remove leftover debug statement
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@748949 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 01:46:17 +00:00
b059de05d2
change syntax for getting document root in mod_lua to r.document_root, suggested by Bertrand Mansion
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@748948 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 01:37:44 +00:00
d68a529544
change r.content_type = "something" to use ap_set_content_type, which it should as was pointed out by Bertrand Mansion
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@748946 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 01:25:27 +00:00
0f4cf6e591
changes headers_in and headers_out handling in mod_lua to map apr_table_t instances as boxed pointers
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@737293 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 03:10:40 +00:00
fb4dd06b2d
Add in the ability to fetch from headers_in.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@729194 13f79535-47bb-0310-9956-ffa450edef68
2008-12-24 02:22:38 +00:00
2e920b6abf
Fix more ISO C90 forbids mixed declarations and code...
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728544 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 22:53:08 +00:00
a36f6f7048
Rename rstack_dump to apl_rstack_dump.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728540 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 22:40:43 +00:00
ce336c773a
Attempt to make mod_lua compile under a strict c89 compiler by moving all variable declarations to be before code.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728539 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 22:38:07 +00:00
729bcf2b58
Reformat mod_lua according to the HTTP Server Project C Style Guide:
...
<http://httpd.apache.org/dev/styleguide.html >
No functional changes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728516 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 21:41:52 +00:00
3948867f51
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.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728508 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 21:27:01 +00:00