blob: 27fa8eb289fda8e8315e6be0f312e750e2a86f61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ae,v 1.3 2001/12/31 04:21:31 fredb Exp $
--- WWW/Library/Implementation/HTParse.c.orig Wed Oct 25 11:35:28 2000
+++ WWW/Library/Implementation/HTParse.c Tue Feb 6 15:26:57 2001
@@ -291,7 +291,11 @@
char *p2, *h;
if ((p2 = strchr(result, '@')) != NULL)
tail = (p2 + 1);
+#ifdef INET6
+ p2 = strrchr(tail, ':');
+#else
p2 = strchr(tail, ':');
+#endif
if (p2 != NULL && !isdigit(UCH(p2[1])))
/*
** Colon not followed by a port number.
|