From 868756d88fa16278d7fae0e9cd461cf007f7740f Mon Sep 17 00:00:00 2001 From: Martin Kraemer Date: Mon, 4 Feb 2002 10:06:37 +0000 Subject: [PATCH] React (in the dir lister) on the same globbing chars as used in the escaping routine git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93215 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/proxy_ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/proxy/proxy_ftp.c b/modules/proxy/proxy_ftp.c index 13b609fa80..6d96f3c832 100644 --- a/modules/proxy/proxy_ftp.c +++ b/modules/proxy/proxy_ftp.c @@ -367,7 +367,7 @@ apr_status_t ap_proxy_send_dir_filter(ap_filter_t *f, apr_bucket_brigade *in) for (n=0; reldir[n] != '\0'; ++n) { if (reldir[n] == '\\' && reldir[n+1] != '\0') ++n; /* escaped character */ - else if (reldir[n] == '*' || reldir[n] == '?') { + else if (strchr(FTP_GLOBBING_CHARS, reldir[n]) != NULL) { wildcard = &reldir[1]; reldir[0] = '\0'; /* strip off the wildcard suffix */ break; -- 2.40.0