aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorDai Sato <satodai@w3m.jp>2006-04-07 15:48:56 +0000
committerDai Sato <satodai@w3m.jp>2006-04-07 15:48:56 +0000
commitdb790bfd2b16f5ff8b69d5411b3cabd1799f81df (patch)
tree6b710dada32645acbcb9caec54831b9d5689698f /file.c
parentReplace '\n' (newline) with ' ' (space) in attributes of html tags. (diff)
downloadw3m-db790bfd2b16f5ff8b69d5411b3cabd1799f81df.tar.gz
w3m-db790bfd2b16f5ff8b69d5411b3cabd1799f81df.zip
Introduce option show_cookie and set it TRUE by default.
Diffstat (limited to '')
-rw-r--r--file.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/file.c b/file.c
index 34730d4..fc4cecf 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.240 2006/04/07 13:21:11 inu Exp $ */
+/* $Id: file.c,v 1.241 2006/04/07 15:48:56 inu Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -836,13 +836,15 @@ readHeader(URLFile *uf, Buffer *newBuf, int thru, ParsedURL *pu)
}
if (pu && name->length > 0) {
int err;
- if (flag & COO_SECURE)
- disp_message_nsec("Received a secured cookie", FALSE, 1,
+ if (show_cookie) {
+ if (flag & COO_SECURE)
+ disp_message_nsec("Received a secured cookie", FALSE, 1,
TRUE, FALSE);
- else
- disp_message_nsec(Sprintf("Received cookie: %s=%s",
+ else
+ disp_message_nsec(Sprintf("Received cookie: %s=%s",
name->ptr, value->ptr)->ptr,
FALSE, 1, TRUE, FALSE);
+ }
err =
add_cookie(pu, name, value, expires, domain, path, flag,
comment, version, port, commentURL);
@@ -874,10 +876,12 @@ readHeader(URLFile *uf, Buffer *newBuf, int thru, ParsedURL *pu)
emsg =
"This cookie was rejected to prevent security violation.";
record_err_message(emsg);
- disp_message_nsec(emsg, FALSE, 1, TRUE, FALSE);
+ if (show_cookie)
+ disp_message_nsec(emsg, FALSE, 1, TRUE, FALSE);
}
else
- disp_message_nsec(Sprintf
+ if (show_cookie)
+ disp_message_nsec(Sprintf
("Accepting invalid cookie: %s=%s",
name->ptr, value->ptr)->ptr, FALSE,
1, TRUE, FALSE);