From 1720ada410087206c1fa689547fa6fb89fb55989 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Mon, 26 Jul 2021 00:16:55 +0000 Subject: snapshot of project "lynx", label v2-9-0dev_6o --- WWW/Library/Implementation/HTGopher.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'WWW/Library/Implementation/HTGopher.c') 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; -- cgit 1.4.1-2-gfad0