]> granicus.if.org Git - apache/commitdiff
mod_lua: The current way of getting the authz provider name doesn't seem to work...
authorDaniel Gruno <humbedooh@apache.org>
Tue, 31 Jul 2012 11:47:04 +0000 (11:47 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Tue, 31 Jul 2012 11:47:04 +0000 (11:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1367504 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/mod_lua.c

index d862c53cf23a0f1e4847dd1ca14c25cdba496899..c3c439f5b6da28ad8f5c498542a7ce98756357a5 100644 (file)
@@ -1006,8 +1006,7 @@ static const char *lua_authz_parse(cmd_parms *cmd, const char *require_line,
     const char *provider_name;
     lua_authz_provider_spec *spec;
 
-    apr_pool_userdata_get((void**)&provider_name, AUTHZ_PROVIDER_NAME_NOTE,
-                          cmd->temp_pool);
+    provider_name = (const char*) ap_getword(cmd->temp_pool, &cmd->directive->args, ' ');
     ap_assert(provider_name != NULL);
 
     spec = apr_hash_get(lua_authz_providers, provider_name, APR_HASH_KEY_STRING);