]> granicus.if.org Git - apache/commitdiff
More docs of oddities.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 16 Oct 2000 03:39:10 +0000 (03:39 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 16 Oct 2000 03:39:10 +0000 (03:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86607 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_userdir.c

index 28437910b6f3bacd186fb62d88a9810278b2511d..79efb2b7919f76965391cebf4ece8fb0d69e81ad 100644 (file)
@@ -283,13 +283,16 @@ static int translate_userdir(request_rec *r)
                 /*
                  * Crummy hack. Need to figure out whether we have been
                  * redirected to a URL or to a file on some drive. Since I
-                 * know of no protocols that are a single letter, if the : is
-                 * the second character, I will assume a file was specified
+                 * know of no protocols that are a single letter, ignore
+                 * a : as the first or second character, and assume a file 
+                 * was specified
+                 *
+                 * XXX: Still no good for NETWARE, since : is embedded (sys:/home)
                  */
                 if (strchr(x + 2, ':'))
 #else
                 if (strchr(x, ':'))
-#endif                          /* WIN32 */
+#endif /* HAVE_DRIVE_LETTERS */
                {
                     redirect = apr_pstrcat(r->pool, x, w, userdir, dname, NULL);
                     apr_table_setn(r->headers_out, "Location", redirect);