diff options
-rw-r--r-- | CHANGES | 6 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTParse.c | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES index 5e3c0329..6da73d89 100644 --- a/CHANGES +++ b/CHANGES @@ -1,9 +1,11 @@ --- $LynxId: CHANGES,v 1.1085 2021/07/26 00:16:55 tom Exp $ +-- $LynxId: CHANGES,v 1.1086 2021/07/26 19:56:30 tom Exp $ =============================================================================== Changes since Lynx 2.8 release =============================================================================== -2021-07-25 (2.9.0dev.7) +2021-07-26 (2.9.0dev.7) +* trim extra '/' in the Related-ABS case of HTParse introduced by revision of + HTSimplify in 2.9.0dev.3 (Debian #989047) -TD * modify formatting of gopher telnet and tn3270 selectors to skip a leading "/" which produced ill-formed URI (report by Dario Niederman) -TD * modify SGML parsing to allow DEL and INS tags to work on a block-level rather 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 */ |