diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-04-08 16:01:37 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-04-08 16:01:37 +0000 |
commit | 25999cbbc8c0d9d2803105dcc42199bd8a10b57d (patch) | |
tree | 1bccdba7917f0f1ed585458907bfdcbb69f0aa85 /main.c | |
parent | [w3m-dev 03858] configure cleanup (diff) | |
download | w3m-25999cbbc8c0d9d2803105dcc42199bd8a10b57d.tar.gz w3m-25999cbbc8c0d9d2803105dcc42199bd8a10b57d.zip |
[w3m] local cookie string is too easy to guess.
* fm.h (Local_cookie): deleted
* local.c (Local_cookie): static
(writeLocalCookie): localCookie()
(setLocalCookie): deleted
(localCookie): added
* main.c (main): delete srand48(), setLocalCookie()
(adBmark): s/Local_cookie/localCookie()/
* proto.h (setLocalCookie): deleted
(localCookie): added
* rc.c (load_option_panel): s/Local_cookie/localCookie()/
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | main.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.221 2003/04/07 15:24:01 ukai Exp $ */ +/* $Id: main.c,v 1.222 2003/04/08 16:01:39 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -369,8 +369,6 @@ main(int argc, char **argv, char **envp) prepare_sys_errlist(); #endif /* not HAVE_SYS_ERRLIST */ - srand48(time(0)); - NO_proxy_domains = newTextList(); fileToDelete = newTextList(); @@ -742,7 +740,6 @@ main(int argc, char **argv, char **envp) #ifdef USE_COOKIE initCookie(); #endif /* USE_COOKIE */ - setLocalCookie(); /* setup cookie for local CGI */ #ifdef USE_HISTORY if (UseHistory) loadHistory(URLHist); @@ -4009,7 +4006,7 @@ adBmark(void) FormList *request; tmp = Sprintf("mode=panel&cookie=%s&bmark=%s&url=%s&title=%s", - (Str_form_quote(Local_cookie))->ptr, + (Str_form_quote(localCookie()))->ptr, (Str_form_quote(Strnew_charp(BookmarkFile)))->ptr, (Str_form_quote(parsedURL2Str(&Currentbuf->currentURL)))-> ptr, |