aboutsummaryrefslogtreecommitdiffstats
path: root/WWW/Library
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2021-07-26 19:56:30 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2021-07-26 19:56:30 +0000
commitdfc7594ae79c7b4ee4bb7fb3680643c37e9e7f42 (patch)
treecc1147b6a3835df02c0a9d17cc14939b4563890c /WWW/Library
parent1720ada410087206c1fa689547fa6fb89fb55989 (diff)
downloadlynx-snapshots-dfc7594ae79c7b4ee4bb7fb3680643c37e9e7f42.tar.gz
snapshot of project "lynx", label v2-9-0dev_6p
Diffstat (limited to 'WWW/Library')
-rw-r--r--WWW/Library/Implementation/HTParse.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/WWW/Library/Implementation/HTParse.c b/WWW/Library/Implementation/HTParse.c
index 99dd5835..170a640d 100644
--- a/WWW/Library/Implementation/HTParse.c
+++ b/WWW/Library/Implementation/HTParse.c
@@ -1,5 +1,5 @@
/*
- * $LynxId: HTParse.c,v 1.95 2021/07/08 22:54:00 tom Exp $
+ * $LynxId: HTParse.c,v 1.96 2021/07/26 19:52:58 tom Exp $
*
* Parse HyperText Document Address HTParse.c
* ================================
@@ -689,6 +689,11 @@ char *HTParse(const char *aName,
} else {
HTSimplify(base, TRUE);
}
+ if (base[0] == '/' && base[1] == '/') {
+ char *pz;
+
+ for (pz = base; (pz[0] = pz[1]) != '\0'; ++pz) ;
+ }
CTRACE((tfp, "HTParse: (Related-ABS)\n"));
} else if (given.relative) {
strcpy(tail, given.relative); /* what we've got */