mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
allow setting of r->user from lua
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832905 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -478,6 +478,12 @@ static int req_newindex(lua_State *L)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (0 == apr_strnatcmp("user", key)) {
|
||||||
|
const char *value = luaL_checkstring(L, 3);
|
||||||
|
r->user = apr_pstrdup(r->pool, value);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
lua_pushstring(L,
|
lua_pushstring(L,
|
||||||
apr_psprintf(r->pool,
|
apr_psprintf(r->pool,
|
||||||
"Property [%s] may not be set on a request_rec",
|
"Property [%s] may not be set on a request_rec",
|
||||||
|
Reference in New Issue
Block a user