about summary refs log tree commit diff stats
path: root/WWW/Library
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2023-07-30 19:11:11 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2023-07-30 19:19:23 +0000
commit18a6a1720238d4eeff22d886dfb48ed600991f47 (patch)
treec477f8e0a2c116e3eb1cc334558fbc8315df3cf0 /WWW/Library
parent076de2a0041c4c2e01b2d2d401cb2821315e78b9 (diff)
downloadlynx-snapshots-18a6a1720238d4eeff22d886dfb48ed600991f47.tar.gz
snapshot of project "lynx", label v2-9-0dev_12f
Diffstat (limited to 'WWW/Library')
-rw-r--r--WWW/Library/Implementation/HTTP.c10
-rw-r--r--WWW/Library/Implementation/SGML.c15
2 files changed, 15 insertions, 10 deletions
diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c
index e3c5a4ae..bbcdf5d8 100644
--- a/WWW/Library/Implementation/HTTP.c
+++ b/WWW/Library/Implementation/HTTP.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTTP.c,v 1.183 2022/04/01 00:10:19 tom Exp $
+ * $LynxId: HTTP.c,v 1.184 2023/07/23 20:02:58 tom Exp $
  *
  * HyperText Transfer Protocol	- Client implementation		HTTP.c
  * ===========================
@@ -2213,7 +2213,8 @@ static int HTLoadHTTP(const char *arg,
 		 * 305 Use Proxy.
 		 * 306 Set Proxy.
 		 * 307 Temporary Redirect with method retained.
-		 * > 308 is unknown.
+		 * 308 Permanent Redirect
+		 * > 309 is unknown.
 		 */
 		if (no_url_redirection || do_head || keep_mime_headers) {
 		    /*
@@ -2267,7 +2268,7 @@ static int HTLoadHTTP(const char *arg,
 
 		if (server_status == 305 ||
 		    server_status == 306 ||
-		    server_status > 307) {
+		    server_status > 308) {
 		    /*
 		     * Show user the content, if any, for 305, 306, or unknown
 		     * status.  - FM
@@ -2330,7 +2331,8 @@ static int HTLoadHTTP(const char *arg,
 		    }
 
 		    HTProgress(line_buffer);
-		    if (server_status == 301) {		/* Moved Permanently */
+		    if ((server_status == 301) ||	/* Moved Permanently */
+			(server_status == 308)) {	/* Permanent Redirect */
 			if (do_post) {
 			    /*
 			     * Don't make the redirection permanent if we have
diff --git a/WWW/Library/Implementation/SGML.c b/WWW/Library/Implementation/SGML.c
index 2534606e..e2d15922 100644
--- a/WWW/Library/Implementation/SGML.c
+++ b/WWW/Library/Implementation/SGML.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: SGML.c,v 1.183 2022/06/13 00:20:50 tom Exp $
+ * $LynxId: SGML.c,v 1.184 2023/07/30 18:12:21 Hiltjo.Posthuma Exp $
  *
  *			General SGML Parser code		SGML.c
  *			========================
@@ -3502,9 +3502,13 @@ static void SGML_character(HTStream *me, int c_in)
 	    me->state = S_text;
 	    break;
 	}
-	HTChunkPutc(string, c);
-	break;
 
+	if (me->T.decode_utf8) {
+	    HTChunkPutUtf8Char(string, clong);
+	} else {
+	    HTChunkPutc(string, c);
+	}
+	break;
     case S_sgmlent:		/* Expecting ENTITY. - FM */
 	if (!me->first_dash && c == '-') {
 	    HTChunkPutc(string, c);
@@ -4662,9 +4666,8 @@ HTStream *SGML_new(const SGML_dtd * dtd,
 	sgml_in_psrc_was_initialized = TRUE;
     }
 #endif
-    if (extended_html)
-    {
-        me->extended_html = TRUE;
+    if (extended_html) {
+	me->extended_html = TRUE;
     }
 
     sgml_offset = 0;
/pre>
78357b88 ^

695f9bf8 ^


78357b88 ^
695f9bf8 ^




























3350c34a ^
695f9bf8 ^







2104d1a7 ^
695f9bf8 ^

9a777801 ^
695f9bf8 ^





b1635a5c ^
33352536 ^

695f9bf8 ^
33352536 ^












695f9bf8 ^
9a777801 ^
33352536 ^
6070c23e ^
695f9bf8 ^
33352536 ^
6070c23e ^
695f9bf8 ^

33352536 ^

695f9bf8 ^
ec73ed12 ^
695f9bf8 ^
33352536 ^



695f9bf8 ^
33352536 ^

695f9bf8 ^
ec73ed12 ^
695f9bf8 ^
33352536 ^
695f9bf8 ^
33352536 ^


6070c23e ^
695f9bf8 ^
2104d1a7 ^
33352536 ^

8aeb85f0 ^
33352536 ^
695f9bf8 ^
33352536 ^
695f9bf8 ^
33352536 ^
4a4a392d ^
695f9bf8 ^

33352536 ^
695f9bf8 ^
33352536 ^
695f9bf8 ^
33352536 ^




b1635a5c ^
33352536 ^

695f9bf8 ^







ec73ed12 ^
695f9bf8 ^
33352536 ^
695f9bf8 ^
33352536 ^
3350c34a ^
86351aaf ^





3d1c4216 ^
86351aaf ^
ec73ed12 ^
86351aaf ^





ec73ed12 ^
86351aaf ^



ec73ed12 ^
86351aaf ^
ec73ed12 ^
86351aaf ^




3d1c4216 ^
86351aaf ^
ec73ed12 ^
86351aaf ^




ec73ed12 ^
68df24fa ^
86351aaf ^
ec73ed12 ^
86351aaf ^





ec73ed12 ^
86351aaf ^
ec73ed12 ^
86351aaf ^





695f9bf8 ^



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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221