diff -ur lynx2.9.0dev.3.orig/WWW/Library/Implementation/HTGopher.c lynx2.9.0dev.3/WWW/Library/Implementation/HTGopher.c --- lynx2.9.0dev.3.orig/WWW/Library/Implementation/HTGopher.c 2019-08-25 21:59:48.000000000 +0200 +++ lynx2.9.0dev.3/WWW/Library/Implementation/HTGopher.c 2019-08-26 17:31:42.000000000 +0200 @@ -343,8 +343,8 @@ junk = StrChr(port, TAB); if (junk) *junk = '\0'; /* Chop port */ - if ((port[1] == '0') && (!port[2])) - port[0] = '\0'; /* 0 means none */ + if (!strcmp(port, ":0") || !strcmp(port, ":70")) + port[0] = '\0'; /* 0 or 70 mean none */ } /* no port */ } /* host ok */ } /* selector ok */ @@ -444,10 +444,7 @@ if (gtype == GOPHER_HTML) { valid_chars = acceptable_html; - HTSprintf0(&address, "//%s:%s/%c", - host, - isEmpty(port) ? "80" : port, - this_type); + HTSprintf0(&address, "//%s%s/%c/", host, port, this_type); if (*selector == '/') ++selector; } else {