httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1369617 - /httpd/httpd/trunk/modules/lua/mod_lua.c
Date Sun, 05 Aug 2012 16:51:10 GMT
Author: sf
Date: Sun Aug  5 16:51:09 2012
New Revision: 1369617

URL: http://svn.apache.org/viewvc?rev=1369617&view=rev
Log:
Revert r1367504:

   mod_lua: The current way of getting the authz provider name doesn't
   seem to work. This approach should fix that.

This is not necessary and breaks with "Require not ..."


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

Modified: httpd/httpd/trunk/modules/lua/mod_lua.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/mod_lua.c?rev=1369617&r1=1369616&r2=1369617&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/mod_lua.c (original)
+++ httpd/httpd/trunk/modules/lua/mod_lua.c Sun Aug  5 16:51:09 2012
@@ -1156,7 +1156,8 @@ static const char *lua_authz_parse(cmd_p
     const char *provider_name;
     lua_authz_provider_spec *spec;
 
-    provider_name = (const char*) ap_getword(cmd->temp_pool, &cmd->directive->args,
' ');
+    apr_pool_userdata_get((void**)&provider_name, AUTHZ_PROVIDER_NAME_NOTE,
+                          cmd->temp_pool);
     ap_assert(provider_name != NULL);
 
     spec = apr_hash_get(lua_authz_providers, provider_name, APR_HASH_KEY_STRING);



Mime
View raw message