From: Eric Covener Date: Fri, 4 Nov 2011 21:17:57 +0000 (+0000) Subject: get the hello world of Handlers working again X-Git-Tag: 2.3.15~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb2c7989eaaf656ef7dd4cf09693a02e0f2b5f80;p=apache get the hello world of Handlers working again git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1197782 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 8e02fb298b..0831bb9011 100644 --- a/CHANGES +++ b/CHANGES @@ -12,6 +12,9 @@ Changes with Apache 2.3.15 PR 51714. [Stefan Fritsch, Jim Jagielski, Ruediger Pluem, Eric Covener, ] + *) mod_lua: Resolve "attempt to index local 'r' (a userdata value)" errors + in LuaMapHandler scripts [Eric Covener] + *) mod_log_debug: Rename optional argument from if= to expr=, to be more in line with other config directives. [Stefan Fritsch] diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c index 6bce9a5d0f..816e674aba 100644 --- a/modules/lua/mod_lua.c +++ b/modules/lua/mod_lua.c @@ -201,6 +201,9 @@ static int lua_alias_munger(request_rec *r) spec->pool = r->pool; } + spec->cb = &lua_open_callback; + spec->cb_arg = NULL; + d = apr_palloc(r->pool, sizeof(mapped_request_details)); d->function_name = ap_pregsub(r->pool, cnd->function_name, r->uri,