* lua_ap_set_document_root; r:set_document_root(path) - sets the current doc * root for the request */
| 1468 | * root for the request |
| 1469 | */ |
| 1470 | static int lua_ap_set_document_root(lua_State *L) |
| 1471 | { |
| 1472 | request_rec *r; |
| 1473 | const char *root; |
| 1474 | |
| 1475 | luaL_checktype(L, 1, LUA_TUSERDATA); |
| 1476 | luaL_checktype(L, 2, LUA_TSTRING); |
| 1477 | r = ap_lua_check_request_rec(L, 1); |
| 1478 | root = lua_tostring(L, 2); |
| 1479 | ap_set_document_root(r, root); |
| 1480 | return 0; |
| 1481 | } |
| 1482 | |
| 1483 | /* |
| 1484 | * lua_ap_getdir; r:get_direntries(directory) - Gets all entries of a |
nothing calls this directly
no test coverage detected