about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTTP.c
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation/HTTP.c')
-rw-r--r--WWW/Library/Implementation/HTTP.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c
index a5be9264..08ed0c08 100644
--- a/WWW/Library/Implementation/HTTP.c
+++ b/WWW/Library/Implementation/HTTP.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTTP.c,v 1.159 2016/11/08 09:38:27 tom Exp $
+ * $LynxId: HTTP.c,v 1.160 2016/11/15 09:31:41 tom Exp $
  *
  * HyperText Tranfer Protocol	- Client implementation		HTTP.c
  * ==========================
@@ -582,7 +582,7 @@ static char *fake_hostname(char *auth)
 /*
  * Strip any username from the given string so we retain only the host.
  */
-static void strip_userid(char *host)
+void strip_userid(char *host, int parse_only)
 {
     char *p1 = host;
     char *p2 = skip_user_passwd(host);
@@ -633,7 +633,7 @@ static void strip_userid(char *host)
 		       gettext("User/password may be confused with hostname: '%s' (e.g, '%s')"),
 		       auth, fake);
 	}
-	if (msg != 0)
+	if (msg != 0 && !parse_only)
 	    HTAlert(msg);
 	if (do_trimming) {
 	    while ((*p1++ = *p2++) != '\0') {
@@ -1312,7 +1312,7 @@ static int HTLoadHTTP(const char *arg,
 	char *host = NULL;
 
 	if ((host = HTParse(anAnchor->address, "", PARSE_HOST)) != NULL) {
-	    strip_userid(host);
+	    strip_userid(host, TRUE);
 	    HTBprintf(&command, "Host: %s%c%c", host, CR, LF);
 	    FREE(host);
 	}
35dc5a4fac0'>0761b449e ^
bb8c47b49 ^
0761b449e ^
bb8c47b49 ^
0761b449e ^


a27eb5153 ^
0761b449e ^
2df9b442c ^
e25474154 ^

e3f53409f ^
f44a4362b ^

ce23b814a ^
e25474154 ^
b731e6ef1 ^
0761b449e ^




b731e6ef1 ^
0761b449e ^

92b8fac94 ^

0761b449e ^


92b8fac94 ^
0761b449e ^

b731e6ef1 ^
e25474154 ^
a1f677980 ^
0761b449e ^

bb8c47b49 ^
0761b449e ^

73c6efdf6 ^
92b8fac94 ^
e25474154 ^
e3f53409f ^


e3f53409f ^


14e496fab ^
55c78af9c ^

a8a9dd669 ^


feef109e6 ^
bb8c47b49 ^
55c78af9c ^

bb8c47b49 ^
55c78af9c ^


e3f53409f ^
d68181246 ^
e3f53409f ^








d68181246 ^
ce23b814a ^
d68181246 ^
ce23b814a ^

d68181246 ^

ce23b814a ^


d68181246 ^
ce23b814a ^


5cd933a44 ^
2df9b442c ^
ce23b814a ^


f317807a8 ^

d68181246 ^
ce23b814a ^
d68181246 ^



f317807a8 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122