about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-08-26 22:55:54 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2019-08-26 22:55:54 +0000
commit522b99861c897625f4c832dee7ae9b683acb5976 (patch)
treec00824f8e0bbcf06ae69779aa6e217d5f5b54a53 /WWW/Library/Implementation
parentada9e5d8f4e56d33e03251820e6e998fb2e57ebb (diff)
downloadlynx-snapshots-522b99861c897625f4c832dee7ae9b683acb5976.tar.gz
snapshot of project "lynx", label v2-9-0dev_3b
Diffstat (limited to 'WWW/Library/Implementation')
-rw-r--r--WWW/Library/Implementation/HTGopher.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/WWW/Library/Implementation/HTGopher.c b/WWW/Library/Implementation/HTGopher.c
index 7c60af5e..7c2baebc 100644
--- a/WWW/Library/Implementation/HTGopher.c
+++ b/WWW/Library/Implementation/HTGopher.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTGopher.c,v 1.73 2019/08/25 19:59:48 tom Exp $
+ * $LynxId: HTGopher.c,v 1.74 2019/08/26 22:44:21 tom Exp $
  *
  *			GOPHER ACCESS				HTGopher.c
  *			=============
@@ -442,17 +442,13 @@ static void parse_menu(const char *arg GCC_UNUSED,
 		    if (gtype != GOPHER_DUPLICATE)
 			this_type = gtype;
 
+		    HTSprintf0(&address, "//%s/%c", host, this_type);
 		    if (gtype == GOPHER_HTML) {
 			valid_chars = acceptable_html;
-			HTSprintf0(&address, "//%s:%s/%c",
-				   host,
-				   isEmpty(port) ? "80" : port,
-				   this_type);
 			if (*selector == '/')
 			    ++selector;
 		    } else {
 			valid_chars = acceptable_file;
-			HTSprintf0(&address, "//%s/%c", host, this_type);
 		    }
 
 		    for (r = selector; *r; r++) {	/* Encode selector string */