| 2085 | } |
| 2086 | |
| 2087 | static void ap_proxy_ftp_register_hook(apr_pool_t *p) |
| 2088 | { |
| 2089 | /* hooks */ |
| 2090 | proxy_hook_scheme_handler(proxy_ftp_handler, NULL, NULL, APR_HOOK_MIDDLE); |
| 2091 | proxy_hook_canon_handler(proxy_ftp_canon, NULL, NULL, APR_HOOK_MIDDLE); |
| 2092 | /* filters */ |
| 2093 | ap_register_output_filter("PROXY_SEND_DIR", proxy_send_dir_filter, |
| 2094 | NULL, AP_FTYPE_RESOURCE); |
| 2095 | /* Compile the output format of "ls -s1" as a fallback for non-unix ftp listings */ |
| 2096 | ls_regex = ap_pregcomp(p, LS_REG_PATTERN, AP_REG_EXTENDED); |
| 2097 | ap_assert(ls_regex != NULL); |
| 2098 | } |
| 2099 | |
| 2100 | static const command_rec proxy_ftp_cmds[] = |
| 2101 | { |
nothing calls this directly
no test coverage detected