Introduction
Introduction Statistics Contact Development Disclaimer Help
telnet/tn3270: don't use @ if username is empty - gopherproxy-c - Gopher HTTP p…
git clone git://git.codemadness.org/gopherproxy-c
Log
Files
Refs
README
LICENSE
---
commit 0c008b2c7e67000e28de30bb3fc85b956a7645e0
parent 9890cde16cba2a03048800bfd81919b0bf9f0e5c
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 17 Aug 2018 16:08:59 +0200
telnet/tn3270: don't use @ if username is empty
Diffstat:
M gopherproxy.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gopherproxy.c b/gopherproxy.c
@@ -333,8 +333,10 @@ servedir(const char *server, const char *port, const char …
case 'T': /* tn3270 */
fputs(typestr(v._type), stdout);
printf(" <a href=\"%s://", v._type == '8' ? "telnet" :…
- xmlencode(v.path);
- fputs("@", stdout);
+ if (v.path[0]) {
+ xmlencode(v.path);
+ fputs("@", stdout);
+ }
xmlencode(v.server);
fputs(":", stdout);
xmlencode(v.port);
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.