httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1197782 - in /httpd/httpd/trunk: CHANGES modules/lua/mod_lua.c
Date Fri, 04 Nov 2011 21:17:58 GMT
Author: covener
Date: Fri Nov  4 21:17:57 2011
New Revision: 1197782

URL: http://svn.apache.org/viewvc?rev=1197782&view=rev
Log:
get the hello world of Handlers working again

Modified:
    httpd/httpd/trunk/CHANGES
    httpd/httpd/trunk/modules/lua/mod_lua.c

Modified: httpd/httpd/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=1197782&r1=1197781&r2=1197782&view=diff
==============================================================================
--- httpd/httpd/trunk/CHANGES [utf-8] (original)
+++ httpd/httpd/trunk/CHANGES [utf-8] Fri Nov  4 21:17:57 2011
@@ -12,6 +12,9 @@ Changes with Apache 2.3.15
      PR 51714. [Stefan Fritsch, Jim Jagielski, Ruediger Pluem, Eric Covener,
      <lowprio20 gmail.com>]
 
+  *) 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]
 

Modified: httpd/httpd/trunk/modules/lua/mod_lua.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/mod_lua.c?rev=1197782&r1=1197781&r2=1197782&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/mod_lua.c (original)
+++ httpd/httpd/trunk/modules/lua/mod_lua.c Fri Nov  4 21:17:57 2011
@@ -201,6 +201,9 @@ static int lua_alias_munger(request_rec 
                 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,



Mime
View raw message