about summary refs log tree commit diff stats
path: root/src/LYUtils.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-03-06 19:00:00 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1998-03-06 19:00:00 -0500
commit373bfbe1a5d037b9eb53f512a3332746e10607a2 (patch)
tree6017109a8287677f6073c384ade5783cdcec5266 /src/LYUtils.c
parente9b52cbfe84bc9e13568e784836c9e0b4b1e0913 (diff)
downloadlynx-snapshots-373bfbe1a5d037b9eb53f512a3332746e10607a2.tar.gz
snapshot of project "lynx", label v2-8pre_4
Diffstat (limited to 'src/LYUtils.c')
-rw-r--r--src/LYUtils.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/LYUtils.c b/src/LYUtils.c
index 17d959b9..b778ed71 100644
--- a/src/LYUtils.c
+++ b/src/LYUtils.c
@@ -4122,7 +4122,14 @@ have_VMS_URL:
 		/*
 		 *  It is a subdirectory or file on the local system.
 		 */
+#ifndef DOSPATH
 		cp = HTEscape(temp, URL_PATH);
+#else
+		/* We need not escape DOS local paths such as c:    */
+		/* especially when we really have file://localhost/ */
+		/* at the beginning.				    */
+		StrAllocCopy(cp, temp);
+#endif /* DOSPATH */
 		StrAllocCat(*AllocatedString, cp);
 		FREE(cp);
 		if (TRACE) {