summaryrefslogtreecommitdiffstats
path: root/modules/lua/mod_lua.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2012-08-05 18:51:09 +0200
committerStefan Fritsch <sf@apache.org>2012-08-05 18:51:09 +0200
commit87bcd2414a6ca3e09118a3250cbd4cba0aea758f (patch)
tree50b1c3fd9c1a9ee73dceb7c58619fe9784375b42 /modules/lua/mod_lua.c
parentdoc fixes for r1299718: (diff)
downloadapache2-87bcd2414a6ca3e09118a3250cbd4cba0aea758f.tar.xz
apache2-87bcd2414a6ca3e09118a3250cbd4cba0aea758f.zip
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 ..." git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1369617 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--modules/lua/mod_lua.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c
index a16b1ba06d..8baf7d8edd 100644
--- a/modules/lua/mod_lua.c
+++ b/modules/lua/mod_lua.c
@@ -1156,7 +1156,8 @@ static const char *lua_authz_parse(cmd_parms *cmd, const char *require_line,
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);