commit 1ccdb2bdfa6b378cfc7f95ca5283cda62ca47303
parent 665d09147798b107186d60b7f6e0992f02b541bf
Author: ukai <ukai>
Date: Fri, 17 Jan 2003 17:29:58 +0000
[w3m-dev 03652] Re: Debian bug #176981
* file.c (checkHeader): always remove_space
(loadGeneralFile): no need remove_space
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat:
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-18 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * [w3m-dev 03652] Re: Debian bug #176981
+ * file.c (checkHeader): always remove_space
+ (loadGeneralFile): no need remove_space
+
2003-01-18 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03651] Debian bug #176981
diff --git a/file.c b/file.c
@@ -914,8 +914,7 @@ checkHeader(Buffer *buf, char *field)
for (i = buf->document_header->first; i != NULL; i = i->next) {
if (!strncasecmp(i->ptr, field, len)) {
p = i->ptr + len;
- SKIP_BLANKS(p);
- return p;
+ return remove_space(p);
}
}
return NULL;
@@ -1702,7 +1701,7 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
&& (p = checkHeader(t_buf, "Location:")) != NULL
&& checkRedirection(&pu)) {
/* document moved */
- tpath = url_quote_conv(remove_space(p), DocumentCode);
+ tpath = url_quote_conv(p, DocumentCode);
request = NULL;
UFclose(&f);
current = New(ParsedURL);