You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@locus.apache.org on 2000/10/16 05:39:10 UTC
cvs commit: apache-2.0/src/modules/standard mod_userdir.c
wrowe 00/10/15 20:39:10
Modified: src/modules/standard mod_userdir.c
Log:
More docs of oddities.
Revision Changes Path
1.18 +6 -3 apache-2.0/src/modules/standard/mod_userdir.c
Index: mod_userdir.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_userdir.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- mod_userdir.c 2000/08/02 05:27:18 1.17
+++ mod_userdir.c 2000/10/16 03:39:10 1.18
@@ -283,13 +283,16 @@
/*
* 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);