diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-24 16:59:16 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-24 16:59:16 +0000 |
commit | fbb3e57fab17414fa2fef95754b31c3d130cd61f (patch) | |
tree | 346060a70cb6b2fc8015aacef10b32542ea42669 /file.c | |
parent | [w3m-dev 02896] fid attr value should be in sequence (diff) | |
download | w3m-fbb3e57fab17414fa2fef95754b31c3d130cd61f.tar.gz w3m-fbb3e57fab17414fa2fef95754b31c3d130cd61f.zip |
[w3m-dev 02901] ACCEPT_BAD_COOKIE_*
* file.c (readHeader): accept_bad_cookie is one of ACCEPT_BAD_COOKIE_*
* fm.h (PERHAPS): deleted
* fm.h (ACCEPT_BAD_COOKIE_*): added
* rc.c (n_s): added
* rc.c (N_S): added
* rc.c (badcookiestr): use N_S(ACCEPT_BAD_COOKIE_*)
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | file.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.46 2002/01/23 17:19:47 ukai Exp $ */ +/* $Id: file.c,v 1.47 2002/01/24 16:59:16 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -727,9 +727,10 @@ readHeader(URLFile *uf, Buffer *newBuf, int thru, ParsedURL *pu) add_cookie(pu, name, value, expires, domain, path, flag, comment, version, port, commentURL); if (err) { - char *ans = (accept_bad_cookie == TRUE) ? "y" : NULL; + char *ans = (accept_bad_cookie == ACCEPT_BAD_COOKIE_ACCEPT) + ? "y" : NULL; if (fmInitialized && (err & COO_OVERRIDE_OK) && - accept_bad_cookie == PERHAPS) { + accept_bad_cookie == ACCEPT_BAD_COOKIE_ASK) { Str msg = Sprintf ("Accept bad cookie from %s for %s? (y or n) ", |