From dfc7594ae79c7b4ee4bb7fb3680643c37e9e7f42 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Mon, 26 Jul 2021 19:56:30 +0000 Subject: snapshot of project "lynx", label v2-9-0dev_6p --- WWW/Library/Implementation/HTParse.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'WWW/Library/Implementation') 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 */ -- cgit 1.4.1-2-gfad0