diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2021-07-26 00:16:55 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2021-07-26 00:16:55 +0000 |
commit | 1720ada410087206c1fa689547fa6fb89fb55989 (patch) | |
tree | cd5ab2614840fb6d858aaa9828e9e6f36e2092ca | |
parent | fd6abf252cbc486b59eb5e9187bc87f4b05f6cd0 (diff) | |
download | lynx-snapshots-1720ada410087206c1fa689547fa6fb89fb55989.tar.gz |
snapshot of project "lynx", label v2-9-0dev_6o
-rw-r--r-- | CHANGES | 6 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTGopher.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES index 62d818c7..5e3c0329 100644 --- a/CHANGES +++ b/CHANGES @@ -1,9 +1,11 @@ --- $LynxId: CHANGES,v 1.1084 2021/07/23 23:38:38 tom Exp $ +-- $LynxId: CHANGES,v 1.1085 2021/07/26 00:16:55 tom Exp $ =============================================================================== Changes since Lynx 2.8 release =============================================================================== -2021-07-23 (2.9.0dev.7) +2021-07-25 (2.9.0dev.7) +* 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 than only inline (Debian #981351) -TD * modify configure script to check for libidn2, add options menu setting for diff --git a/WWW/Library/Implementation/HTGopher.c b/WWW/Library/Implementation/HTGopher.c index f20d35dc..4f9e02ba 100644 --- a/WWW/Library/Implementation/HTGopher.c +++ b/WWW/Library/Implementation/HTGopher.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTGopher.c,v 1.75 2020/01/21 22:04:23 tom Exp $ + * $LynxId: HTGopher.c,v 1.76 2021/07/25 23:51:30 tom Exp $ * * GOPHER ACCESS HTGopher.c * ============= @@ -377,9 +377,13 @@ static void parse_menu(const char *arg GCC_UNUSED, if (gtype == GOPHER_TELNET) { PUTS(" (TEL) "); + if (*selector == '/') + ++selector; HTSprintf0(&address, format, STR_TELNET_URL, selector, host); } else if (gtype == GOPHER_TN3270) { PUTS("(3270) "); + if (*selector == '/') + ++selector; HTSprintf0(&address, format, STR_TN3270_URL, selector, host); } else { /* If parsed ok */ char *r; |