]> granicus.if.org Git - apache/commitdiff
Oops. Use ftp_check_globbingchars().
authorMartin Kraemer <martin@apache.org>
Mon, 4 Feb 2002 10:11:29 +0000 (10:11 +0000)
committerMartin Kraemer <martin@apache.org>
Mon, 4 Feb 2002 10:11:29 +0000 (10:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93217 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_ftp.c

index b2d86d28a2349465bf663d9ca5ea9574c71e505a..488988dab962e1f3a360dc6502981b68caf95372 100644 (file)
@@ -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 */