* ap_set_context_info: Set context_prefix and context_document_root. * @param r The request * @param prefix the URI prefix, without trailing slash * @param document_root the corresponding directory on disk, without trailing * slash * @note If one of prefix of document_root is NULL, the corrsponding * property will not be changed. */
| 1633 | * property will not be changed. |
| 1634 | */ |
| 1635 | static int lua_ap_set_context_info(lua_State *L) |
| 1636 | { |
| 1637 | request_rec *r; |
| 1638 | const char *prefix; |
| 1639 | const char *document_root; |
| 1640 | luaL_checktype(L, 1, LUA_TUSERDATA); |
| 1641 | r = ap_lua_check_request_rec(L, 1); |
| 1642 | luaL_checktype(L, 2, LUA_TSTRING); |
| 1643 | prefix = lua_tostring(L, 2); |
| 1644 | luaL_checktype(L, 3, LUA_TSTRING); |
| 1645 | document_root = lua_tostring(L, 3); |
| 1646 | ap_set_context_info(r, prefix, document_root); |
| 1647 | return 0; |
| 1648 | } |
| 1649 | |
| 1650 | |
| 1651 | /** |
nothing calls this directly
no test coverage detected