From 77e0acc0d3401860baa8663d6fe555528b492d72 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Tue, 26 Nov 2002 18:03:18 +0000 Subject: use local_cookie for support local-cgi commands * file.c (loadGeneralFile): pass Local_cookie to DirBufferCommand * fm.h (Local_cookie): Str * local.c (setLocalCookie): Str, set_environ() (set_cgi_environ): remove LOCAL_COOKIE * main.c (ldhelp): pass Local_cookie (adBmark): ditto * rc.c (optionpanel_src1): cookie (load_option_panel): pass Local_cookie * w3mbookmark.c (main): check Local_cookie * w3mhelperpanel (main): ditto * scripts/dirlist.cgi.in: ditto * scripts/w3mhelp.cgi.in: ditto * scripts/multipart/multipart.cgi.in: ditto From: Hironori SAKAMOTO --- rc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'rc.c') diff --git a/rc.c b/rc.c index 4449897..17cba1c 100644 --- a/rc.c +++ b/rc.c @@ -1,4 +1,4 @@ -/* $Id: rc.c,v 1.67 2002/11/25 16:57:17 ukai Exp $ */ +/* $Id: rc.c,v 1.68 2002/11/26 18:03:28 ukai Exp $ */ /* * Initialization file etc. */ @@ -1387,7 +1387,7 @@ init_rc(char *config_filename) static char optionpanel_src1[] = "Option Setting Panel\ -
Option Setting Panel
(w3m version %s)

\n" "%s\n" "

"; +
Option Setting Panel
(w3m version %s)

\n" "%s\n" ""; static Str to_str(struct param_ptr *p) @@ -1424,7 +1424,8 @@ to_str(struct param_ptr *p) Buffer * load_option_panel(void) { - Str src = Sprintf(optionpanel_src1, w3m_version, CMT_HELPER); + Str src = Sprintf(optionpanel_src1, w3m_version, + (Str_form_quote(Local_cookie))->ptr, CMT_HELPER); struct param_ptr *p; struct sel_c *s; int x, i; -- cgit v1.2.3