diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2021-07-26 19:56:30 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2021-07-26 19:56:30 +0000 |
commit | dfc7594ae79c7b4ee4bb7fb3680643c37e9e7f42 (patch) | |
tree | cc1147b6a3835df02c0a9d17cc14939b4563890c /WWW/Library/Implementation | |
parent | 1720ada410087206c1fa689547fa6fb89fb55989 (diff) | |
download | lynx-snapshots-dfc7594ae79c7b4ee4bb7fb3680643c37e9e7f42.tar.gz |
snapshot of project "lynx", label v2-9-0dev_6p
Diffstat (limited to 'WWW/Library/Implementation')
-rw-r--r-- | WWW/Library/Implementation/HTParse.c | 7 |
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 */ |