From: Martin Kraemer Date: Mon, 4 Feb 2002 10:11:29 +0000 (+0000) Subject: Oops. Use ftp_check_globbingchars(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd65375e4d3e05d7c2e6b24e487958468efe696b;p=apache Oops. Use ftp_check_globbingchars(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93217 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_ftp.c b/modules/proxy/proxy_ftp.c index b2d86d28a2..488988dab9 100644 --- a/modules/proxy/proxy_ftp.c +++ b/modules/proxy/proxy_ftp.c @@ -363,16 +363,9 @@ apr_status_t ap_proxy_send_dir_filter(ap_filter_t *f, apr_bucket_brigade *in) ++path; reldir = strrchr(path, '/'); - if (reldir != NULL) { - for (n=0; reldir[n] != '\0'; ++n) { - if (reldir[n] == '\\' && reldir[n+1] != '\0') - ++n; /* escaped character */ - else if (strchr(FTP_GLOBBING_CHARS, reldir[n]) != NULL) { - wildcard = &reldir[1]; - reldir[0] = '\0'; /* strip off the wildcard suffix */ - break; - } - } + if (reldir != NULL && ftp_check_globbingchars(reldir)) { + wildcard = &reldir[1]; + reldir[0] = '\0'; /* strip off the wildcard suffix */ } /* Copy path, strip (all except the last) trailing slashes */