mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Bugfixes to proxy_ftp.c -> in some places uri_addr was used instead
of connect_addr - all hail cut and paste! PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88740 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -203,10 +203,8 @@ static int proxy_fixup(request_rec *r)
|
||||
/* canonicalise each specific scheme */
|
||||
if (strncasecmp(url, "http:", 5) == 0)
|
||||
return ap_proxy_http_canon(r, url + 5, "http", DEFAULT_HTTP_PORT);
|
||||
#if FTP
|
||||
else if (strncasecmp(url, "ftp:", 4) == 0)
|
||||
return ap_proxy_ftp_canon(r, url + 4);
|
||||
#endif
|
||||
|
||||
p = strchr(url, ':');
|
||||
if (p == NULL || p == url)
|
||||
@@ -387,10 +385,8 @@ static int proxy_handler(request_rec *r)
|
||||
return ap_proxy_connect_handler(r, url, NULL, 0);
|
||||
if (strcasecmp(scheme, "http") == 0)
|
||||
return ap_proxy_http_handler(r, url, NULL, 0);
|
||||
#if FTP
|
||||
if (strcasecmp(scheme, "ftp") == 0)
|
||||
return ap_proxy_ftp_handler(r, url);
|
||||
#endif
|
||||
else {
|
||||
ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r->server,
|
||||
"Neither CONNECT, HTTP or FTP for %s",
|
||||
@@ -721,7 +717,7 @@ static void register_hooks(apr_pool_t *p)
|
||||
ap_hook_handler(proxy_handler, NULL, NULL, APR_HOOK_FIRST);
|
||||
/* filename-to-URI translation */
|
||||
ap_hook_translate_name(proxy_trans, NULL, NULL, APR_HOOK_FIRST);
|
||||
#ifdef FTP
|
||||
#ifdef FTP_FILTER
|
||||
/* filters */
|
||||
ap_register_output_filter("PROXY_SEND_DIR", ap_proxy_send_dir_filter, AP_FTYPE_CONNECTION);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user