aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-17 17:29:58 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-17 17:29:58 +0000
commit7d71f2cba684050d59fa9ef0837987fa3650f669 (patch)
tree6dca12b374701652910cb58ee0ec054aaa6ccc9d
parent[w3m-dev 03651] Debian bug #176981 (diff)
downloadw3m-7d71f2cba684050d59fa9ef0837987fa3650f669.tar.gz
w3m-7d71f2cba684050d59fa9ef0837987fa3650f669.zip
[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 (limited to '')
-rw-r--r--ChangeLog8
-rw-r--r--file.c7
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index e685496..e5acdaf 100644
--- 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
@@ -6586,4 +6592,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.688 2003/01/17 17:13:02 ukai Exp $
+$Id: ChangeLog,v 1.689 2003/01/17 17:29:58 ukai Exp $
diff --git a/file.c b/file.c
index 665c387..ef075df 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.190 2003/01/17 17:13:08 ukai Exp $ */
+/* $Id: file.c,v 1.191 2003/01/17 17:30:01 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -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);