r:parseargs() returning a lua table */
| 351 | } |
| 352 | /* r:parseargs() returning a lua table */ |
| 353 | static int req_parseargs(lua_State *L) |
| 354 | { |
| 355 | apr_table_t *form_table; |
| 356 | request_rec *r = ap_lua_check_request_rec(L, 1); |
| 357 | lua_newtable(L); |
| 358 | lua_newtable(L); /* [table, table] */ |
| 359 | ap_args_to_table(r, &form_table); |
| 360 | apr_table_do(req_aprtable2luatable_cb, L, form_table, NULL); |
| 361 | return 2; /* [table<string, string>, table<string, array<string>>] */ |
| 362 | } |
| 363 | |
| 364 | /* ap_lua_binstrstr: Binary strstr function for uploaded data with NULL bytes */ |
| 365 | static char* ap_lua_binstrstr (const char * haystack, size_t hsize, const char* needle, size_t nsize) |
nothing calls this directly
no test coverage detected