]> granicus.if.org Git - apache/commitdiff
React (in the dir lister) on the same globbing chars as used in the escaping routine
authorMartin Kraemer <martin@apache.org>
Mon, 4 Feb 2002 10:06:37 +0000 (10:06 +0000)
committerMartin Kraemer <martin@apache.org>
Mon, 4 Feb 2002 10:06:37 +0000 (10:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93215 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_ftp.c

index 13b609fa806927e9878a21eb2d465e2cbb609d58..6d96f3c832c0ca99e187e566cc7f2ddb510f09a7 100644 (file)
@@ -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;